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: https://develop.svn.wordpress.org/trunk@21597 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-08-23 20:01:10 +00:00
parent 861a8fb246
commit de06b81360
18 changed files with 55 additions and 57 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ if ( $doaction ) {
case 'delete':
$deleted = 0;
foreach( (array) $post_ids as $post_id ) {
$post_del = & get_post($post_id);
$post_del = get_post($post_id);
if ( !current_user_can($post_type_object->cap->delete_post, $post_id) )
wp_die( __('You are not allowed to delete this item.') );