Fix warning when processing read_post cap. Props duck_. fixes #20917
git-svn-id: https://develop.svn.wordpress.org/trunk@21060 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8865b27df7
commit
257e455a50
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user