Wordpress++
This commit is contained in:
1 parent
790f1487a2
commit
3f49ab1747
610 files changed
+58979
-36562
No files matched your search
+5
-3
@@ -18,8 +18,6 @@
|
||||
* 5: Icon for top level menu
|
||||
*
|
||||
* @global array $menu
|
||||
* @name $menu
|
||||
* @var array
|
||||
*/
|
||||
|
||||
$menu[2] = array( __('Dashboard'), 'read', 'index.php', '', 'menu-top menu-top-first menu-icon-dashboard', 'menu-dashboard', 'dashicons-dashboard' );
|
||||
@@ -172,8 +170,12 @@ $menu[60] = array( __( 'Appearance' ), $appearance_cap, 'themes.php', '', 'menu-
|
||||
unset( $appearance_cap );
|
||||
|
||||
// Add 'Editor' to the bottom of the Appearance menu.
|
||||
if ( ! is_multisite() )
|
||||
if ( ! is_multisite() ) {
|
||||
add_action('admin_menu', '_add_themes_utility_last', 101);
|
||||
}
|
||||
/**
|
||||
*
|
||||
*/
|
||||
function _add_themes_utility_last() {
|
||||
// Must use API on the admin_menu hook, direct modification is only possible on/before the _admin_menu hook
|
||||
add_submenu_page('themes.php', _x('Editor', 'theme editor'), _x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');
|
||||
|
||||
Reference in new issue
Block a user