Skip to content

Commit

Permalink
Add safe_render() method Blocks_Abstract class to wrap the render() w…
Browse files Browse the repository at this point in the history
…ith a try/catch and display the resulting error (if any)

Fixes #7207
  • Loading branch information
sc0ttkclark committed Oct 20, 2023
1 parent 4e0cd06 commit 9aba67b
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 7 deletions.
24 changes: 23 additions & 1 deletion src/Pods/Blocks/Blocks_Abstract.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Pods/Blocks/Types/Field.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Pods/Blocks/Types/Form.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Pods/Blocks/Types/Item_List.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Pods/Blocks/Types/Item_Single.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Pods/Blocks/Types/Item_Single_List_Fields.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Pods/Blocks/Types/View.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9aba67b

Please sign in to comment.