WordPress.org

Make WordPress Core

Changeset 9628


Ignore:
Timestamp:
11/12/08 04:55:47 (7 years ago)
Author:
ryan
Message:

Show Quick Press only if user can publish posts. fixes #8108

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r9615 r9628  
    4949 
    5050    // QuickPress Widget 
    51     wp_add_dashboard_widget( 'dashboard_quick_press', __( 'QuickPress' ), 'wp_dashboard_quick_press' ); 
     51    if ( current_user_can('publish_posts') ) 
     52        wp_add_dashboard_widget( 'dashboard_quick_press', __( 'QuickPress' ), 'wp_dashboard_quick_press' ); 
    5253 
    5354    // Recent Drafts 
Note: See TracChangeset for help on using the changeset viewer.