mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Better broken path info workaround for setups that use redirection.
git-svn-id: https://develop.svn.wordpress.org/trunk@3395 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1514,7 +1514,7 @@ class WP {
|
||||
|
||||
// The requested permalink is in $pathinfo for path info requests and
|
||||
// $req_uri for other requests.
|
||||
if ( ! empty($pathinfo) && ($wp_rewrite->index != $pathinfo) ) {
|
||||
if ( ! empty($pathinfo) && !preg_match('|^.*' . $wp_rewrite->index . '$|', $pathinfo) ) {
|
||||
$request = $pathinfo;
|
||||
} else {
|
||||
// If the request uri is the index, blank it out so that we don't try to match it against a rule.
|
||||
|
||||
Reference in New Issue
Block a user