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

git-svn-id: http://svn.automattic.com/wordpress/trunk@4200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-09-21 00:09:37 +00:00
parent 4be3f7547b
commit 7d55a43102
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')) ) {