Make WordPress Core

Changeset 19280


Ignore:
Timestamp:
11/14/2011 09:05:13 PM (13 years ago)
Author:
duck_
Message:

Use correct variable. We preg_match() against $request_match, so that's what should be checked with empty() too. Fixes #17177.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp.php

    r19094 r19280  
    186186            // Look for matches.
    187187            $request_match = $request;
    188             if ( empty( $req_uri ) ) {
     188            if ( empty( $request_match ) ) {
    189189                // An empty request could only match against ^$ regex
    190190                if ( isset( $rewrite['$'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.