Make WordPress Core


Ignore:
Timestamp:
11/28/2012 10:28:20 PM (14 years ago)
Author:
nacin
Message:

Use the create_posts post type cap in more places. Remove the janky create_posts meta cap. see #16714.

File:
1 edited

Legend:

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

    r22418 r22908  
    10611061                }
    10621062                break;
    1063         // current_user_can( 'create_posts', $post_type )
    1064         case 'create_posts':
    1065                 $post_type = isset( $args[0] ) ? $args[0] : 'post';
    1066                 $post_type_object = get_post_type_object( $post_type );
    1067 
    1068                 $caps[] = $post_type_object->cap->create_posts;
    1069 
    1070                 break;
    10711063                // edit_post breaks down to edit_posts, edit_published_posts, or
    10721064                // edit_others_posts
Note: See TracChangeset for help on using the changeset viewer.