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:
parent
c6f08a2929
commit
146a8cf16c
@ -48,6 +48,7 @@ function create_initial_post_types() {
|
|||||||
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
|
'_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. */
|
'_edit_link' => 'media.php?attachment_id=%d', /* internal use only. don't use this when registering your own post type. */
|
||||||
'capability_type' => 'post',
|
'capability_type' => 'post',
|
||||||
|
'map_meta_cap' => true,
|
||||||
'hierarchical' => false,
|
'hierarchical' => false,
|
||||||
'rewrite' => false,
|
'rewrite' => false,
|
||||||
'query_var' => 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. */
|
'_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. */
|
'_edit_link' => 'revision.php?revision=%d', /* internal use only. don't use this when registering your own post type. */
|
||||||
'capability_type' => 'post',
|
'capability_type' => 'post',
|
||||||
|
'map_meta_cap' => true,
|
||||||
'hierarchical' => false,
|
'hierarchical' => false,
|
||||||
'rewrite' => false,
|
'rewrite' => false,
|
||||||
'query_var' => false,
|
'query_var' => false,
|
||||||
@ -76,7 +78,6 @@ function create_initial_post_types() {
|
|||||||
),
|
),
|
||||||
'public' => false,
|
'public' => false,
|
||||||
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
|
'_builtin' => true, /* internal use only. don't use this when registering your own post type. */
|
||||||
'capability_type' => 'post',
|
|
||||||
'hierarchical' => false,
|
'hierarchical' => false,
|
||||||
'rewrite' => false,
|
'rewrite' => false,
|
||||||
'query_var' => false,
|
'query_var' => false,
|
||||||
|
Loading…
Reference in New Issue
Block a user