Don't use rewrite array as string. fixes #2771

git-svn-id: https://develop.svn.wordpress.org/trunk@4200 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-09-21 00:09:37 +00:00
parent 3472772716
commit df3c1a520e
1 changed files with 1 additions and 1 deletions

View File

@ -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')) ) {