Skip to content

Stop one bad filter taking down every page with a button - #5

Merged
jdbg merged 1 commit into
mainfrom
fix-render-null-content
Sep 20, 2026
Merged

jdbg merged 1 commit into
mainfrom
fix-render-null-content

Conversation

@tomjn

@tomjn tomjn commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

render() runs for every core/button, icon or not, and hands the content straight back when there is no icon. With strict types on, a null from an earlier filter on the hook made that return a TypeError.

render_block_core/button runs for every button, and render() returns the content untouched when there is no icon. With strict types on, a null from an earlier filter on the hook made that return a TypeError, so one misbehaving filter elsewhere took down every page with a button on it.
@jdbg
jdbg merged commit 2083cd3 into main Sep 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants