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:
ryan
2007-03-07 03:05:41 +00:00
parent ab79f95e5f
commit 8d7839b14c
8 changed files with 29 additions and 22 deletions

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);