mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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')) ) {
|
||||
|
||||
Reference in New Issue
Block a user