Message info
 
To:wp-svn@lists.automattic.com From:m@wordpress.org Subject:[wp-svn] [21088] branches/3.3/wp-includes/capabilities.php: Fix warning when processing read_post cap. Date:Fri, 15 Jun 2012 17:54:13 +0000 (UTC)
 

Revision
21088
Author
markjaquith
Date
2012-06-15 17:54:13 +0000 (Fri, 15 Jun 2012)

Log Message

Fix warning when processing read_post cap. Props duck_. fixes #20917 for the 3.3 branch.

Modified Paths

Diff

Modified: branches/3.3/wp-includes/capabilities.php (21087 => 21088)


--- branches/3.3/wp-includes/capabilities.php	2012-06-15 17:52:59 UTC (rev 21087)
+++ branches/3.3/wp-includes/capabilities.php	2012-06-15 17:54:13 UTC (rev 21088)
@@ -1083,7 +1083,7 @@
 		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':