mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user