Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Returning NULL to default_content filter causes fatal error #11176
Describe the bug
This is related to the following pull request which was merged.
Add the following code, perhaps as a
add_filter( 'default_content', '__return_null' );
In the WordPress admin areas, click on Posts, then click "add new".
Desktop (please complete the following information):
Running WordPress core
I've added the following code in
Disabling the Classic Editor plugin and going to the URL for a new post (e.g. http://gutenberg.test/wp-admin/post-new.php) results in a blank screen.
Note: When viewing the source on the blank screen (
There are no errors in the PHP error log.
Chrome Browser Console Error Message
works without problem. The problem only occurs when
That seems completely unrelated to the issue at hand.
Looking into this, I'm not sure this is necessarily something that should be fixed within Gutenberg.
I've opened a core ticket for this, to ensure that the default