Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 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/menu.php

    r45932 r47122  
    6161$menu[4] = array( '', 'read', 'separator1', '', 'wp-menu-separator' );
    6262
    63 // $menu[5] = Posts
     63// $menu[5] = Posts.
    6464
    6565$menu[10]                     = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' );
     
    8383    $submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' );
    8484
    85 // $menu[20] = Pages
     85// $menu[20] = Pages.
    8686
    8787// Avoid the comment count query for users who cannot edit_posts.
     
    108108$submenu['edit-comments.php'][0] = array( __( 'All Comments' ), 'edit_posts', 'edit-comments.php' );
    109109
    110 $_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group
     110$_wp_last_object_menu = 25; // The index of the last top-level menu in the object menu group.
    111111
    112112$types   = (array) get_post_types(
     
    140140
    141141    $menu_class = 'menu-top menu-icon-' . $ptype_for_id;
    142     // 'post' special case
     142    // 'post' special case.
    143143    if ( 'post' === $ptype ) {
    144144        $menu_class    .= ' open-if-no-js';
     
    220220 */
    221221function _add_themes_utility_last() {
    222     // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook
     222    // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook.
    223223    add_submenu_page( 'themes.php', __( 'Theme Editor' ), __( 'Theme Editor' ), 'edit_themes', 'theme-editor.php' );
    224224}
     
    298298    $submenu['options-general.php'][45] = array( __( 'Privacy' ), 'manage_privacy_options', 'options-privacy.php' );
    299299
    300 $_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group
     300$_wp_last_utility_menu = 80; // The index of the last top-level menu in the utility menu group.
    301301
    302302$menu[99] = array( '', 'read', 'separator-last', '', 'wp-menu-separator' );
    303303
    304 // Back-compat for old top-levels
     304// Back-compat for old top-levels.
    305305$_wp_real_parent_file['post.php']       = 'edit.php';
    306306$_wp_real_parent_file['post-new.php']   = 'edit.php';
Note: See TracChangeset for help on using the changeset viewer.