Don't try to match rewrite rules against AtomPub requests. Props josephscott. fixes #7249
git-svn-id: http://svn.automattic.com/wordpress/trunk@8263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fac865a413
commit
ffc0077745
|
@ -91,6 +91,10 @@ class WP {
|
||||||
// Look for matches.
|
// Look for matches.
|
||||||
$request_match = $request;
|
$request_match = $request;
|
||||||
foreach ($rewrite as $match => $query) {
|
foreach ($rewrite as $match => $query) {
|
||||||
|
// Don't try to match against AtomPub calls
|
||||||
|
if ( $req_uri == 'wp-app.php' )
|
||||||
|
break;
|
||||||
|
|
||||||
// If the requesting file is the anchor of the match, prepend it
|
// If the requesting file is the anchor of the match, prepend it
|
||||||
// to the path info.
|
// to the path info.
|
||||||
if ((! empty($req_uri)) && (strpos($match, $req_uri) === 0) && ($req_uri != $request)) {
|
if ((! empty($req_uri)) && (strpos($match, $req_uri) === 0) && ($req_uri != $request)) {
|
||||||
|
|
Loading…
Reference in New Issue