From 659852f4d4a6da8a8147d4fe73cd55a4e83d2264 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 21 Sep 2006 10:47:51 +0000 Subject: WP Merge to rev 4201 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@763 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/rewrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wp-includes/rewrite.php') diff --git a/wp-includes/rewrite.php b/wp-includes/rewrite.php index 75445f8..6f34b57 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')) ) { -- cgit