Changeset 35282
- Timestamp:
- 10/20/2015 05:48:11 AM (9 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r35004 r35282 48 48 49 49 // QuickPress Widget 50 if ( is_blog_admin() && current_user_can( 'edit_posts') ) {50 if ( is_blog_admin() && current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) { 51 51 $quick_draft_title = sprintf( '<span class="hide-if-no-js">%1$s</span> <span class="hide-if-js">%2$s</span>', __( 'Quick Draft' ), __( 'Drafts' ) ); 52 52 wp_add_dashboard_widget( 'dashboard_quick_press', $quick_draft_title, 'wp_dashboard_quick_press' ); -
trunk/src/wp-admin/post.php
r34794 r35282 72 72 $error_msg = __( 'Unable to submit this form, please refresh and try again.' ); 73 73 74 if ( ! current_user_can( 'edit_posts') ) {74 if ( ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) { 75 75 exit; 76 76 }
Note: See TracChangeset
for help on using the changeset viewer.