Ticket #54382: 54382-2.patch
| File 54382-2.patch, 1.7 KB (added by , 4 years ago) |
|---|
-
src/wp-admin/menu.php
239 239 240 240 unset( $appearance_cap ); 241 241 242 // Add 'Theme Editor' to the bottom of the Appearancemenu.242 // Add 'Theme Editor' to the bottom of the Tools menu. 243 243 if ( ! is_multisite() ) { 244 244 add_action( 'admin_menu', '_add_themes_utility_last', 101 ); 245 245 } 246 246 /** 247 * Adds the 'Theme Editor' link to the bottom of the Appearancemenu.247 * Adds the 'Theme Editor' link to the bottom of the Tools menu. 248 248 * 249 249 * @access private 250 250 * @since 3.0.0 251 * @since 5.9.0 Menu item moved from Appearance (themes.php) to Tools (tools.php). 251 252 */ 252 253 function _add_themes_utility_last() { 253 254 // Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook. 254 add_submenu_page( 't hemes.php', __( 'Theme Editor' ), __( 'Theme Editor' ), 'edit_themes', 'theme-editor.php' );255 add_submenu_page( 'tools.php', __( 'Theme Editor' ), __( 'Theme Editor' ), 'edit_themes', 'theme-editor.php' ); 255 256 } 256 257 257 258 $count = ''; … … 271 272 272 273 $submenu['plugins.php'][5] = array( __( 'Installed Plugins' ), 'activate_plugins', 'plugins.php' ); 273 274 275 // @since 5.9.0 Plugin Editor menu item moved from Plugins (plugins.php) to Tools (tools.php). 274 276 if ( ! is_multisite() ) { 275 277 /* translators: Add new plugin. */ 276 278 $submenu['plugins.php'][10] = array( _x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' ); 277 $submenu[' plugins.php'][15] = array( __( 'Plugin Editor' ), 'edit_plugins', 'plugin-editor.php' );279 $submenu['tools.php'][40] = array( __( 'Plugin Editor' ), 'edit_plugins', 'plugin-editor.php' ); 278 280 } 279 281 280 282 unset( $update_data );