Fix warning when processing read_post cap. Props duck_. fixes #20917

git-svn-id: http://core.svn.wordpress.org/trunk@21060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2012-06-12 13:50:51 +00:00
parent 483785623c
commit 0a22489dc7
1 changed files with 1 additions and 1 deletions

View File

@ -1094,7 +1094,7 @@ function map_meta_cap( $cap, $user_id ) {
elseif ( $status_obj->private )
$caps[] = $post_type->cap->read_private_posts;
else
$caps[] = map_meta_cap( 'edit_post', $user_id, $post->ID );
$caps = map_meta_cap( 'edit_post', $user_id, $post->ID );
break;
case 'edit_post_meta':
case 'delete_post_meta':