You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Gutenberg 18.1.0, get_block_template is filtered with gutenberg_replace_pattern_blocks_get_block_template(), which is looking for a full WP_Block_Template object.
It is possible for null to be passed to the get_block_template filter instead. When this happens, a fatal error occurs because Gutenberg attempts to read/assign the content property.
Step-by-step reproduction instructions
Sorry, I'm mid-launch on something, so I can't spend much time on this part. But I'll loop back soon.
But, in a situation where get_block_file_template() returns null for a template during get_block_template(), that null will be passed to get_block_template.
Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.5, Gutenberg 18.1.0
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered:
Description
In Gutenberg 18.1.0,
get_block_template
is filtered withgutenberg_replace_pattern_blocks_get_block_template()
, which is looking for a fullWP_Block_Template
object.It is possible for
null
to be passed to theget_block_template
filter instead. When this happens, a fatal error occurs because Gutenberg attempts to read/assign thecontent
property.Step-by-step reproduction instructions
Sorry, I'm mid-launch on something, so I can't spend much time on this part. But I'll loop back soon.
But, in a situation where
get_block_file_template()
returns null for a template duringget_block_template()
, thatnull
will be passed toget_block_template
.Screenshots, screen recording, code snippet
No response
Environment info
WordPress 6.5, Gutenberg 18.1.0
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered: