Make WordPress Core


Ignore:
Timestamp:
10/20/2015 05:48:11 AM (9 years ago)
Author:
wonderboymusic
Message:

Dashboard: use the create_posts cap on the post type object when determining if the Quick Press widget can be displayed.

Props jim912, ocean90, chriscct7.
Fixes #25681.

File:
1 edited

Legend:

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

    r34794 r35282  
    7272        $error_msg = __( 'Unable to submit this form, please refresh and try again.' );
    7373
    74     if ( ! current_user_can( 'edit_posts' ) ) {
     74    if ( ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) {
    7575        exit;
    7676    }
Note: See TracChangeset for help on using the changeset viewer.