[wp-trac] [WordPress Trac] #55705: Safeguarding has_blocks() Against Fatal Errors

WordPress Trac noreply at wordpress.org
Wed May 11 10:01:57 UTC 2022


#55705: Safeguarding has_blocks() Against Fatal Errors
-------------------------+---------------------
 Reporter:  Howdy_McGee  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.1
Component:  Editor       |     Version:  5.0
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+---------------------
Changes (by costdev):

 * Attachment "55705.diff" added.

 Adds a `_doing_it_wrong()` and returns `false` when `get_post()` returns
 `null`. Includes PHPUnit test.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55705>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list