Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r47090 r47122  
    8888$parent_file = 'themes.php';
    8989
    90 // Help tab: Overview
     90// Help tab: Overview.
    9191if ( current_user_can( 'switch_themes' ) ) {
    9292    $help_overview = '<p>' . __( 'This screen is used for managing your installed themes. Aside from the default theme(s) included with your WordPress installation, themes are designed and developed by third parties.' ) . '</p>' .
     
    105105        )
    106106    );
    107 } // switch_themes
    108 
    109 // Help tab: Adding Themes
     107} // End if 'switch_themes'.
     108
     109// Help tab: Adding Themes.
    110110if ( current_user_can( 'install_themes' ) ) {
    111111    if ( is_multisite() ) {
     
    126126        )
    127127    );
    128 } // install_themes
    129 
    130 // Help tab: Previewing and Customizing
     128} // End if 'install_themes'.
     129
     130// Help tab: Previewing and Customizing.
    131131if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) {
    132132    $help_customize =
     
    142142        )
    143143    );
    144 } // edit_theme_options && customize
     144} // End if 'edit_theme_options' && 'customize'.
    145145
    146146get_current_screen()->set_help_sidebar(
     
    171171            'addNew'            => __( 'Add New Theme' ),
    172172            'search'            => __( 'Search Installed Themes' ),
    173             'searchPlaceholder' => __( 'Search installed themes...' ), // placeholder (no ellipsis)
     173            'searchPlaceholder' => __( 'Search installed themes...' ), // Placeholder (no ellipsis).
    174174            /* translators: %d: Number of themes. */
    175175            'themesFound'       => __( 'Number of Themes found: %d' ),
     
    251251            continue;
    252252        }
    253         // 0 = name, 1 = capability, 2 = file
     253        // 0 = name, 1 = capability, 2 = file.
    254254        if ( ( strcmp( $self, $item[2] ) == 0 && empty( $parent_file ) ) || ( $parent_file && ( $item[2] == $parent_file ) ) ) {
    255255            $class = ' current';
Note: See TracChangeset for help on using the changeset viewer.