summaryrefslogtreecommitdiffstats
path: root/wp-includes/rewrite.php
diff options
context:
space:
mode:
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')) ) {