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:
parent
483785623c
commit
0a22489dc7
|
@ -1094,7 +1094,7 @@ function map_meta_cap( $cap, $user_id ) {
|
||||||
elseif ( $status_obj->private )
|
elseif ( $status_obj->private )
|
||||||
$caps[] = $post_type->cap->read_private_posts;
|
$caps[] = $post_type->cap->read_private_posts;
|
||||||
else
|
else
|
||||||
$caps[] = map_meta_cap( 'edit_post', $user_id, $post->ID );
|
$caps = map_meta_cap( 'edit_post', $user_id, $post->ID );
|
||||||
break;
|
break;
|
||||||
case 'edit_post_meta':
|
case 'edit_post_meta':
|
||||||
case 'delete_post_meta':
|
case 'delete_post_meta':
|
||||||
|
|
Loading…
Reference in New Issue