Make WordPress Core

Ticket #54382: 54382.patch

File 54382.patch, 1.1 KB (added by poena, 4 years ago)

Menu item moved from Appearance (themes.php) to Tools (tools.php).

  • wp-admin/menu.php

     
    223223
    224224unset( $appearance_cap );
    225225
    226 // Add 'Theme Editor' to the bottom of the Appearance menu.
     226// Add 'Theme Editor' to the bottom of the Tools menu.
    227227if ( ! is_multisite() ) {
    228228        add_action( 'admin_menu', '_add_themes_utility_last', 101 );
    229229}
    230230/**
    231  * Adds the 'Theme Editor' link to the bottom of the Appearance menu.
     231 * Adds the 'Theme Editor' link to the bottom of the Tools menu.
    232232 *
    233233 * @access private
    234234 * @since 3.0.0
     235 * @since 5.9.0 Menu item moved from Appearance (themes.php) to Tools (tools.php).
    235236 */
    236237function _add_themes_utility_last() {
    237238        // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook.
    238         add_submenu_page( 'themes.php', __( 'Theme Editor' ), __( 'Theme Editor' ), 'edit_themes', 'theme-editor.php' );
     239        add_submenu_page( 'tools.php', __( 'Theme Editor' ), __( 'Theme Editor' ), 'edit_themes', 'theme-editor.php' );
    239240}
    240241
    241242$count = '';