mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-17 03:56:07 +00:00
Show Quick Press only if user can publish posts. fixes #8108
git-svn-id: http://svn.automattic.com/wordpress/trunk@9628 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
474e602f4f
commit
1664f9b0c2
@ -48,7 +48,8 @@ function wp_dashboard_setup() {
|
|||||||
wp_add_dashboard_widget( 'dashboard_plugins', __( 'Plugins' ), 'wp_dashboard_plugins' );
|
wp_add_dashboard_widget( 'dashboard_plugins', __( 'Plugins' ), 'wp_dashboard_plugins' );
|
||||||
|
|
||||||
// QuickPress Widget
|
// QuickPress Widget
|
||||||
wp_add_dashboard_widget( 'dashboard_quick_press', __( 'QuickPress' ), 'wp_dashboard_quick_press' );
|
if ( current_user_can('publish_posts') )
|
||||||
|
wp_add_dashboard_widget( 'dashboard_quick_press', __( 'QuickPress' ), 'wp_dashboard_quick_press' );
|
||||||
|
|
||||||
// Recent Drafts
|
// Recent Drafts
|
||||||
wp_add_dashboard_widget( 'dashboard_recent_drafts', sprintf( __( 'Recent Drafts <a href="%s">View all</a>' ), 'edit.php?post_status=draft' ), 'wp_dashboard_recent_drafts' );
|
wp_add_dashboard_widget( 'dashboard_recent_drafts', sprintf( __( 'Recent Drafts <a href="%s">View all</a>' ), 'edit.php?post_status=draft' ), 'wp_dashboard_recent_drafts' );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user