From 57532d83dde0f1e9492208e44da75edfbc55a06d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 6 Jul 2008 17:33:39 +0000 Subject: [PATCH] Don't try to match rewrite rules against AtomPub requests. Props josephscott. fixes #7249 git-svn-id: https://develop.svn.wordpress.org/trunk@8263 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 289b27edcd..62196eef59 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -91,6 +91,10 @@ class WP { // Look for matches. $request_match = $request; 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 // to the path info. if ((! empty($req_uri)) && (strpos($match, $req_uri) === 0) && ($req_uri != $request)) {