Don't use rewrite array as string. fixes #2771
git-svn-id: https://develop.svn.wordpress.org/trunk@4200 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3472772716
commit
df3c1a520e
|
@ -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')) ) {
|
||||
|
|
Loading…
Reference in New Issue