mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
Map the create_posts post type cap to upload_files for attachments.
Props nacin fixes #16714 git-svn-id: https://develop.svn.wordpress.org/trunk@22921 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
49b230b82a
commit
a26c25a8bc
@ -63,6 +63,9 @@ function create_initial_post_types() {
|
||||
'_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. */
|
||||
'capability_type' => 'post',
|
||||
'capabilities' => array(
|
||||
'create_posts' => 'upload_files',
|
||||
),
|
||||
'map_meta_cap' => true,
|
||||
'hierarchical' => false,
|
||||
'rewrite' => false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user