Skip to content

Commit

Permalink
Fix warning when processing read_post cap. Props duck_. fixes #20917 …
Browse files Browse the repository at this point in the history
…for the 3.3 branch.

git-svn-id: http://core.svn.wordpress.org/branches/3.3@21088 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
markjaquith committed Jun 15, 2012
1 parent f457931 commit c0fff0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-includes/capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,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':
Expand Down

0 comments on commit c0fff0a

Please sign in to comment.