[wp-trac] [WordPress Trac] #55222: PHP Warning when using 'do_parse_request' filter with '__return_false'
WordPress Trac
noreply at wordpress.org
Sat Feb 26 14:32:52 UTC 2022
#55222: PHP Warning when using 'do_parse_request' filter with '__return_false'
--------------------------+-----------------------------
Reporter: dd32 | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0
Component: Query | Version:
Severity: minor | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"52805" 52805]:
{{{
#!CommitTicketReference repository="" revision="52805"
Query: Correct the "matched rule" condition in `WP::parse_request()`.
The `WP::$matched_rule` property is always set now, so we should check
that it's not empty instead.
Follow-up to [52804].
See #55222.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55222#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list