mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Standardize on 'url' for fetching the blog's url. Props rob1n. fixes #3623
git-svn-id: https://develop.svn.wordpress.org/trunk@4983 602fd350-edb4-49c9-b593-d223f7449a82
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