WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/04/2010 12:28:29 AM (11 years ago)
Author:
wpmuguru
Message:

use homeurl(), props PeteMall, see #9008

File:
1 edited

Legend:

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

    r14426 r14429  
    31313131 */
    31323132function is_local_attachment($url) {
    3133     if (strpos($url, get_bloginfo('url')) === false)
     3133    if (strpos($url, home_url()) === false)
    31343134        return false;
    3135     if (strpos($url, get_bloginfo('url') . '/?attachment_id=') !== false)
     3135    if (strpos($url, home_url('/?attachment_id=')) !== false)
    31363136        return true;
    31373137    if ( $id = url_to_postid($url) ) {
Note: See TracChangeset for help on using the changeset viewer.