Ticket #54382: 54382.patch
File 54382.patch, 1.1 KB (added by , 4 years ago) |
---|
-
wp-admin/menu.php
223 223 224 224 unset( $appearance_cap ); 225 225 226 // Add 'Theme Editor' to the bottom of the Appearancemenu.226 // Add 'Theme Editor' to the bottom of the Tools menu. 227 227 if ( ! is_multisite() ) { 228 228 add_action( 'admin_menu', '_add_themes_utility_last', 101 ); 229 229 } 230 230 /** 231 * Adds the 'Theme Editor' link to the bottom of the Appearancemenu.231 * Adds the 'Theme Editor' link to the bottom of the Tools menu. 232 232 * 233 233 * @access private 234 234 * @since 3.0.0 235 * @since 5.9.0 Menu item moved from Appearance (themes.php) to Tools (tools.php). 235 236 */ 236 237 function _add_themes_utility_last() { 237 238 // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook. 238 add_submenu_page( 't hemes.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' ); 239 240 } 240 241 241 242 $count = '';