summaryrefslogtreecommitdiffstats
path: root/wp-includes/rewrite.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-09-21 10:47:51 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-09-21 10:47:51 +0000
commit659852f4d4a6da8a8147d4fe73cd55a4e83d2264 (patch)
treeb7944d764b51e9789f0cd7f061512fa9c085d807 /wp-includes/rewrite.php
parenta194fea75f7340d53134ff1ecfa5969b03735576 (diff)
downloadwordpress-mu-659852f4d4a6da8a8147d4fe73cd55a4e83d2264.tar.gz
wordpress-mu-659852f4d4a6da8a8147d4fe73cd55a4e83d2264.tar.xz
wordpress-mu-659852f4d4a6da8a8147d4fe73cd55a4e83d2264.zip
WP Merge to rev 4201
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@763 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/rewrite.php')
-rw-r--r--wp-includes/rewrite.php2
1 files changed, 1 insertions, 1 deletions
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')) ) {