Don't use rewrite array as string. fixes #2771
git-svn-id: http://svn.automattic.com/wordpress/trunk@4200 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4be3f7547b
commit
7d55a43102
|
@ -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