Make WordPress Core


Ignore:
Timestamp:
02/02/2010 05:37:03 PM (14 years ago)
Author:
ryan
Message:

Allow customizing capabilities for custom post types. Always check caps against those in the post type object instead of contructing them manually. see #9674

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post-new.php

    r12728 r12927  
    5050
    5151// Show post form.
    52 if ( current_user_can('edit_' . $post_type_object->capability_type . 's') ) {
     52if ( current_user_can($post_type_object->edit_type_cap) ) {
    5353    $post = get_default_post_to_edit( $post_type );
    5454    include('edit-form-advanced.php');
Note: See TracChangeset for help on using the changeset viewer.