Make WordPress Core


Ignore:
Timestamp:
08/23/2012 08:01:10 PM (13 years ago)
Author:
ryan
Message:

Remove return ref from all calls to get_post()
Return WP_Post from get_default_post_to_edit()
Replace all calls to get_page() with get_post()
see #21309

File:
1 edited

Legend:

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

    r21351 r21597  
    656656        if ( is_array($size) )
    657657            $size = join('x', $size);
    658         $attachment =& get_post($attachment_id);
     658        $attachment = get_post($attachment_id);
    659659        $default_attr = array(
    660660            'src'   => $src,
Note: See TracChangeset for help on using the changeset viewer.