Revisions and attachments should also generate meta capabilities as part of their cap object. see #14122.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15909 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0a943555ef
commit
53e77351a5
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue