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/link-template.php

    r14374 r14429  
    322322
    323323    if ( ! $link )
    324         $link = trailingslashit(get_bloginfo('url')) . "?attachment_id=$id";
     324        $link = home_url( "/?attachment_id=$id" );
    325325
    326326    return apply_filters('attachment_link', $link, $id);
Note: See TracChangeset for help on using the changeset viewer.