From d7454c743cc613e5ea5462fdeefe2b7001857efc Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 14 Feb 2012 17:12:27 +0000 Subject: [PATCH] Cap check help text. Add mention of Welcome box. Props dougwrites, nacin. fixes #19933 git-svn-id: https://develop.svn.wordpress.org/trunk@19919 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/index.php | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/wp-admin/index.php b/wp-admin/index.php index 7e46d8c13b..60bff45946 100644 --- a/wp-admin/index.php +++ b/wp-admin/index.php @@ -58,14 +58,21 @@ get_current_screen()->add_help_tab( array( ) ); $help = '

' . __('The boxes on your Dashboard screen are:') . '

'; -$help .= '

' . __('Right Now - Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.') . '

'; -$help .= '

' . __('Recent Comments - Shows the most recent comments on your posts (configurable, up to 30) and allows you to moderate them.') . '

'; -$help .= '

' . __('Incoming Links - Shows links to your site found by Google Blog Search.') . '

'; -$help .= '

' . __('QuickPress - Allows you to create a new post and either publish it or save it as a draft.') . '

'; -$help .= '

' . __('Recent Drafts - Displays links to the 5 most recent draft posts you’ve started.') . '

'; +if ( current_user_can( 'edit_posts' ) ) + $help .= '

' . __('Right Now - Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.') . '

'; +if ( current_user_can( 'moderate_comments' ) ) + $help .= '

' . __('Recent Comments - Shows the most recent comments on your posts (configurable, up to 30) and allows you to moderate them.') . '

'; +if ( current_user_can( 'publish_posts' ) ) + $help .= '

' . __('Incoming Links - Shows links to your site found by Google Blog Search.') . '

'; +if ( current_user_can( 'edit_posts' ) ) { + $help .= '

' . __('QuickPress - Allows you to create a new post and either publish it or save it as a draft.') . '

'; + $help .= '

' . __('Recent Drafts - Displays links to the 5 most recent draft posts you’ve started.') . '

'; +} $help .= '

' . __('WordPress Blog - Latest news from the official WordPress project.') . '

'; $help .= '

' . __('Other WordPress News - Shows the WordPress Planet feed. You can configure it to show a different feed of your choosing.') . '

'; -$help .= '

' . __('Plugins - Features the most popular, newest, and recently updated plugins from the WordPress.org Plugin Directory.') . '

'; +if ( ! is_multisite() && current_user_can( 'install_plugins' ) ) + $help .= '

' . __('Plugins - Features the most popular, newest, and recently updated plugins from the WordPress.org Plugin Directory.') . '

'; +$help .= '

' . __('Welcome - Shows links for some of the most common tasks when setting up a new site.') . '

'; get_current_screen()->add_help_tab( array( 'id' => 'help-content',