Standardize on 'url' for fetching the blog's url. Props rob1n. fixes #3623
git-svn-id: http://svn.automattic.com/wordpress/trunk@4983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1198,9 +1198,9 @@ function generate_page_uri_index() {
|
||||
//
|
||||
|
||||
function is_local_attachment($url) {
|
||||
if ( !strstr($url, get_bloginfo('home') ) )
|
||||
if ( !strstr($url, get_bloginfo('url') ) )
|
||||
return false;
|
||||
if ( strstr($url, get_bloginfo('home') . '/?attachment_id=') )
|
||||
if ( strstr($url, get_bloginfo('url') . '/?attachment_id=') )
|
||||
return true;
|
||||
if ( $id = url_to_postid($url) ) {
|
||||
$post = & get_post($id);
|
||||
|
||||
Reference in New Issue
Block a user