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:
Ryan Boren
2012-08-23 20:01:10 +00:00
parent 6248d6221c
commit f56d8278bb
18 changed files with 55 additions and 57 deletions

View File

@@ -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;