From 1f984603a239cb79dfb68fbb38c56fa450ca3ba7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 10 Nov 2020 19:05:10 +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. Built from https://develop.svn.wordpress.org/trunk@49558 git-svn-id: http://core.svn.wordpress.org/trunk@49296 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/index.php | 14 +++++++++----- wp-includes/version.php | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/wp-admin/index.php b/wp-admin/index.php index 8cb469f1a2..6c704cc2fe 100644 --- a/wp-admin/index.php +++ b/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', diff --git a/wp-includes/version.php b/wp-includes/version.php index e024cf86f9..d5751293f1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta3-49557'; +$wp_version = '5.6-beta3-49558'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.