WordPress.org

Make WordPress Core

Changeset 22921


Ignore:
Timestamp:
11/29/12 16:14:07 (2 years ago)
Author:
ryan
Message:

Map the create_posts post type cap to upload_files for attachments.

Props nacin
fixes #16714

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r22878 r22921  
    6464        '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */ 
    6565        'capability_type' => 'post', 
     66        'capabilities' => array( 
     67            'create_posts' => 'upload_files', 
     68        ), 
    6669        'map_meta_cap' => true, 
    6770        'hierarchical' => false, 
Note: See TracChangeset for help on using the changeset viewer.