Revisions and attachments should also generate meta capabilities as part of their cap object. see #14122.

git-svn-id: https://develop.svn.wordpress.org/trunk@15909 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-10-22 00:25:14 +00:00
parent c6f08a2929
commit 146a8cf16c
1 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ function create_initial_post_types() {
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
'_edit_link' => 'media.php?attachment_id=%d', /* internal use only. don't use this when registering your own post type. */
'capability_type' => 'post',
'map_meta_cap' => true,
'hierarchical' => false,
'rewrite' => false,
'query_var' => false,
@ -64,6 +65,7 @@ function create_initial_post_types() {
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
'_edit_link' => 'revision.php?revision=%d', /* internal use only. don't use this when registering your own post type. */
'capability_type' => 'post',
'map_meta_cap' => true,
'hierarchical' => false,
'rewrite' => false,
'query_var' => false,
@ -76,7 +78,6 @@ function create_initial_post_types() {
),
'public' => false,
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
'capability_type' => 'post',
'hierarchical' => false,
'rewrite' => false,
'query_var' => false,