Make WordPress Core

Ticket #17177: 17177.diff

File 17177.diff, 618 bytes (added by duck_, 15 years ago)
  • wp-includes/class-wp.php

     
    186186                        // Look for matches.
    187187                        $request_match = $request;
    188188                        foreach ( (array) $rewrite as $match => $query) {
    189                                 // Don't try to match against AtomPub calls
    190                                 if ( $req_uri == 'wp-app.php' )
     189                                // Don't try to match against AtomPub calls or empty requests
     190                                if ( $req_uri == 'wp-app.php' ) || empty( $req_uri ) )
    191191                                        break;
    192192
    193193                                // If the requesting file is the anchor of the match, prepend it