From df3c1a520e74479c05523f44f0c0a75e9375c2df Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 21 Sep 2006 00:09:37 +0000 Subject: [PATCH] Don't use rewrite array as string. fixes #2771 git-svn-id: https://develop.svn.wordpress.org/trunk@4200 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/rewrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index db81ee0ba1..d074445e14 100644 --- a/wp-includes/rewrite.php +++ b/wp-includes/rewrite.php @@ -97,7 +97,7 @@ function url_to_postid($url) { $url = str_replace('://www.', '://', $url); // Strip 'index.php/' if we're not using path info permalinks - if ( false === strpos($rewrite, 'index.php/') ) + if ( !$wp_rewrite->using_index_permalinks() ) $url = str_replace('index.php/', '', $url); if ( false !== strpos($url, get_option('home')) ) {