Make WordPress Core

Changeset 42783


Ignore:
Timestamp:
03/05/2018 03:31:06 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Help/About: Adjust capability checks formatting in help text on Dashboard screen for readability and consistency with similar checks in other files.

See #43472.

File:
1 edited

Legend:

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

    r42782 r42783  
    7272
    7373$help = '<p>' . __( 'The boxes on your Dashboard screen are:' ) . '</p>';
     74
    7475if ( current_user_can( 'edit_posts' ) ) {
    7576    $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>';
    7677}
    77     $help .= '<p>' . __( '<strong>Activity</strong> &mdash; Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.' ) . '</p>';
     78
     79$help .= '<p>' . __( '<strong>Activity</strong> &mdash; Shows the upcoming scheduled posts, recently published posts, and the most recent comments on your posts and allows you to moderate them.' ) . '</p>';
     80
    7881if ( is_blog_admin() && current_user_can( 'edit_posts' ) ) {
    7982    $help .= '<p>' . __( "<strong>Quick Draft</strong> &mdash; Allows you to create a new post and save it as a draft. Also displays links to the 3 most recent draft posts you've started." ) . '</p>';
    8083}
     84
    8185$help .= '<p>' . sprintf(
    8286    /* translators: %s: WordPress Planet URL */
     
    8488    __( 'https://planet.wordpress.org/' )
    8589) . '</p>';
     90
    8691if ( current_user_can( 'edit_theme_options' ) ) {
    8792    $help .= '<p>' . __( '<strong>Welcome</strong> &mdash; Shows links for some of the most common tasks when setting up a new site.' ) . '</p>';
Note: See TracChangeset for help on using the changeset viewer.