Make WordPress Core


Ignore:
Timestamp:
11/10/2020 07:03:12 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Help/About: Add Site Health Status dashboard widget to the Help → Content tab.

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/_index.php

    r48528 r49558  
    7373$help = '<p>' . __( 'The boxes on your Dashboard screen are:' ) . '</p>';
    7474
     75if ( current_user_can( 'edit_theme_options' ) ) {
     76    $help .= '<p>' . __( '<strong>Welcome</strong> &mdash; Shows links for some of the most common tasks when setting up a new site.' ) . '</p>';
     77}
     78
     79if ( current_user_can( 'view_site_health_checks' ) ) {
     80    $help .= '<p>' . __( '<strong>Site Health Status</strong> &mdash; Informs you of any potential issues that should be addressed to improve the performance or security of your website.' ) . '</p>';
     81}
     82
    7583if ( current_user_can( 'edit_posts' ) ) {
    76     $help .= '<p>' . __( '<strong>At A Glance</strong> &mdash; Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.' ) . '</p>';
     84    $help .= '<p>' . __( '<strong>At a Glance</strong> &mdash; Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.' ) . '</p>';
    7785}
    7886
     
    8896    __( 'https://planet.wordpress.org/' )
    8997) . '</p>';
    90 
    91 if ( current_user_can( 'edit_theme_options' ) ) {
    92     $help .= '<p>' . __( '<strong>Welcome</strong> &mdash; Shows links for some of the most common tasks when setting up a new site.' ) . '</p>';
    93 }
    9498
    9599$screen->add_help_tab(
Note: See TracChangeset for help on using the changeset viewer.