Make WordPress Core


Ignore:
Timestamp:
03/07/2007 03:05:41 AM (20 years ago)
Author:
ryan
Message:

Standardize on 'url' for fetching the blog's url. Props rob1n. fixes #3623

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r4953 r4983  
    11991199
    12001200function is_local_attachment($url) {
    1201         if ( !strstr($url, get_bloginfo('home') ) )
    1202                 return false;
    1203         if ( strstr($url, get_bloginfo('home') . '/?attachment_id=') )
     1201        if ( !strstr($url, get_bloginfo('url') ) )
     1202                return false;
     1203        if ( strstr($url, get_bloginfo('url') . '/?attachment_id=') )
    12041204                return true;
    12051205        if ( $id = url_to_postid($url) ) {
Note: See TracChangeset for help on using the changeset viewer.