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:
Ryan Boren
2007-03-07 03:05:41 +00:00
parent bde47651f0
commit f77b96fc84
8 changed files with 29 additions and 22 deletions
+2 -2
View File
@@ -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);