Map the create_posts post type cap to upload_files for attachments.
Props nacin fixes #16714 git-svn-id: http://core.svn.wordpress.org/trunk@22921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ce2c38fda6
commit
cef3bc6abb
|
@ -63,6 +63,9 @@ 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' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */
|
'_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */
|
||||||
'capability_type' => 'post',
|
'capability_type' => 'post',
|
||||||
|
'capabilities' => array(
|
||||||
|
'create_posts' => 'upload_files',
|
||||||
|
),
|
||||||
'map_meta_cap' => true,
|
'map_meta_cap' => true,
|
||||||
'hierarchical' => false,
|
'hierarchical' => false,
|
||||||
'rewrite' => false,
|
'rewrite' => false,
|
||||||
|
|
Loading…
Reference in New Issue