mirror of
git://develop.git.wordpress.org/
synced 2025-03-23 13:29:56 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@52805 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e537f7cddf
commit
69a4f35a7b
@ -252,7 +252,7 @@ class WP {
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset( $this->matched_rule ) ) {
|
||||
if ( ! empty( $this->matched_rule ) ) {
|
||||
// Trim the query of everything up to the '?'.
|
||||
$query = preg_replace( '!^.+\?!', '', $query );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user