Ticket #7249: wp-includes--classes.php.diff

File wp-includes--classes.php.diff, 605 bytes (added by josephscott, 4 years ago)
  • wp-includes/classes.php

     
    9191                        // Look for matches. 
    9292                        $request_match = $request; 
    9393                        foreach ($rewrite as $match => $query) { 
     94                                // Don't try to match against AtomPub calls 
     95                                if( $req_uri == 'wp-app.php' ) { 
     96                                        break; 
     97                                } 
     98 
    9499                                // If the requesting file is the anchor of the match, prepend it 
    95100                                // to the path info. 
    96101                                if ((! empty($req_uri)) && (strpos($match, $req_uri) === 0) && ($req_uri != $request)) {