mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Use correct variable. We preg_match() against $request_match, so that's what should be checked with empty() too. Fixes #17177.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19280 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f04a3d38e8
commit
e82f153205
@ -185,7 +185,7 @@ class WP {
|
|||||||
|
|
||||||
// Look for matches.
|
// Look for matches.
|
||||||
$request_match = $request;
|
$request_match = $request;
|
||||||
if ( empty( $req_uri ) ) {
|
if ( empty( $request_match ) ) {
|
||||||
// An empty request could only match against ^$ regex
|
// An empty request could only match against ^$ regex
|
||||||
if ( isset( $rewrite['$'] ) ) {
|
if ( isset( $rewrite['$'] ) ) {
|
||||||
$this->matched_rule = '$';
|
$this->matched_rule = '$';
|
||||||
|
Loading…
Reference in New Issue
Block a user