Make WordPress Core


Ignore:
Timestamp:
10/24/2012 10:15:43 PM (12 years ago)
Author:
ryan
Message:

Use the create_posts capability in more places.

In get_post_type_capabilities(), make sure create_posts reflects customizations to the edit_posts capability when create_posts is not specifically set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/press-this.php

    r22019 r22291  
    1414header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    1515
    16 if ( ! current_user_can('edit_posts') )
     16if ( ! current_user_can( 'edit_posts' ) || ! current_user_can( 'create_posts' ) )
    1717    wp_die( __( 'Cheatin’ uh?' ) );
    1818
Note: See TracChangeset for help on using the changeset viewer.