Ticket #5661: rewrite_match.diff
File rewrite_match.diff, 533 bytes (added by , 17 years ago) |
---|
-
wp-includes/rewrite.php
127 127 foreach ($rewrite as $match => $query) { 128 128 // If the requesting file is the anchor of the match, prepend it 129 129 // to the path info. 130 if ( (! empty($url)) && (strpos($match, $url) === 0) ) {130 if ( (! empty($url)) && (strpos($match, $url) === 0) && ($url != $request)) { 131 131 $request_match = $url . '/' . $request; 132 132 } 133 133