Ticket #9031: wp-classes-handle-app.diff
File wp-classes-handle-app.diff, 845 bytes (added by , 15 years ago) |
---|
-
wp-includes/classes.php
194 194 195 195 $this->request = $request; 196 196 197 // Remove 'posts' from wp-app requests 198 if ($req_uri == 'wp-app.php' && substr($request, 0, 6) === 'posts/') { 199 $request = substr($request, 6); 200 $match_app_requests = true; 201 } 202 197 203 // Look for matches. 198 204 $request_match = $request; 199 205 foreach ( (array) $rewrite as $match => $query) { 200 // Don't try to match against AtomPub calls201 if ( $req_uri == 'wp-app.php' )206 // Don't try to match against some AtomPub calls 207 if ( $req_uri == 'wp-app.php' && empty($match_app_requests) ) 202 208 break; 203 209 204 210 // If the requesting file is the anchor of the match, prepend it