From bde89301fd47db336065b1b5945cd60a9ae538d0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 10 Nov 2020 19:03:12 +0000 Subject: [PATCH] =?UTF-8?q?Help/About:=20Add=20Site=20Health=20Status=20da?= =?UTF-8?q?shboard=20widget=20to=20the=20Help=20=E2=86=92=20Content=20tab.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reorder the items in the help tab to align with their default position on the Dashboard screen. Follow-up to [47063], [47300]. Props nlpro. Fixes #51745. git-svn-id: https://develop.svn.wordpress.org/trunk@49558 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/_index.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/_index.php b/src/wp-admin/_index.php index 8cb469f1a2..6c704cc2fe 100644 --- a/src/wp-admin/_index.php +++ b/src/wp-admin/_index.php @@ -72,8 +72,16 @@ $screen->add_help_tab( $help = '

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

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

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

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

' . __( 'Site Health Status — Informs you of any potential issues that should be addressed to improve the performance or security of your website.' ) . '

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

' . __( 'At A Glance — Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.' ) . '

'; + $help .= '

' . __( 'At a Glance — Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.' ) . '

'; } $help .= '

' . __( 'Activity — Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.' ) . '

'; @@ -88,10 +96,6 @@ $help .= '

' . sprintf( __( 'https://planet.wordpress.org/' ) ) . '

'; -if ( current_user_can( 'edit_theme_options' ) ) { - $help .= '

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

'; -} - $screen->add_help_tab( array( 'id' => 'help-content',