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

WordPress Trac noreply at wordpress.org
Thu Aug 4 07:32:59 UTC 2022


#55705: Safeguarding has_blocks() Against Fatal Errors
-------------------------------------------------+-------------------------
 Reporter:  Howdy_McGee                          |       Owner:  audrasjb
     Type:  enhancement                          |      Status:  reviewing
 Priority:  normal                               |   Milestone:  6.1
Component:  Editor                               |     Version:  5.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-        |     Focuses:
  testing-info changes-requested                 |
-------------------------------------------------+-------------------------

Comment (by costdev):

 I have updated [https://github.com/WordPress/wordpress-develop/pull/3059
 PR 3059] to remove the `_doing_it_wrong()` as this is inconsistent with
 Core's usual approach: If the post can't be retrieved, return `false` (or
 similar). The revised PR is ready for review.

 Big props to @dlh and @peterwilsoncc for advising on this!

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


More information about the wp-trac mailing list