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 git-svn-id: http://core.svn.wordpress.org/trunk@21597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -705,7 +705,7 @@ function parent_dropdown( $default = 0, $parent = 0, $level = 0 ) {
|
||||
*/
|
||||
function the_attachment_links( $id = false ) {
|
||||
$id = (int) $id;
|
||||
$post = & get_post( $id );
|
||||
$post = get_post( $id );
|
||||
|
||||
if ( $post->post_type != 'attachment' )
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user