Consistently use $wp_rewrite->index instead of hardcoding "index.php".

props wonderboymusic. fixes #7337

git-svn-id: https://develop.svn.wordpress.org/trunk@23305 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2013-01-18 13:44:22 +00:00
parent f0e451a30f
commit 524e73f175
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -315,7 +315,7 @@ function url_to_postid($url) {
// Strip 'index.php/' if we're not using path info permalinks
if ( !$wp_rewrite->using_index_permalinks() )
$url = str_replace('index.php/', '', $url);
$url = str_replace( $wp_rewrite->index . '/', '', $url );
if ( false !== strpos($url, home_url()) ) {
// Chop off http://domain.com