Message info
 
To:wp-svn@lists.automattic.com From:m@wordpress.org Subject:[wp-svn] [21060] trunk/wp-includes/capabilities.php: Fix warning when processing read_post cap. Date:Tue, 12 Jun 2012 13:50:51 +0000 (UTC)
 

Revision
21060
Author
ryan
Date
2012-06-12 13:50:51 +0000 (Tue, 12 Jun 2012)

Log Message

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

Modified Paths

Diff

Modified: trunk/wp-includes/capabilities.php (21059 => 21060)


--- trunk/wp-includes/capabilities.php	2012-06-12 00:02:20 UTC (rev 21059)
+++ trunk/wp-includes/capabilities.php	2012-06-12 13:50:51 UTC (rev 21060)
@@ -1094,7 +1094,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':