[wp-trac] [WordPress Trac] #55705: Safeguarding has_blocks() Against Fatal Errors
WordPress Trac
noreply at wordpress.org
Mon Aug 8 08:20:58 UTC 2022
#55705: Safeguarding has_blocks() Against Fatal Errors
-------------------------------------------------+-------------------------
Reporter: Howdy_McGee | Owner: audrasjb
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.1
Component: Editor | Version: 5.0
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests has- | Focuses:
testing-info commit |
-------------------------------------------------+-------------------------
Changes (by audrasjb):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"53858" 53858]:
{{{
#!CommitTicketReference repository="" revision="53858"
Editor: Safeguard `has_blocks()` against fatal errors.
This changeset ensures `has_blocks()` doesn't return a fatal error when
`$post` is not a valid post. If the post can't be retrieved, the function
now returns `false`.
Props Howdy_McGee, costdev, colonelphantom, audrasjb, dlh, peterwilsoncc.
Fixes #55705.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55705#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list