Drop 'Custom' from menu names. Use 'Menus' instead of Navigation. see #11817
git-svn-id: http://svn.automattic.com/wordpress/trunk@13339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7d4fa95591
commit
111e334aca
|
@ -55,7 +55,7 @@ class Custom_Background {
|
||||||
if ( ! current_user_can('switch_themes') )
|
if ( ! current_user_can('switch_themes') )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$page = add_theme_page(__('Custom Background'), __('Custom Background'), 'switch_themes', 'custom-background', array(&$this, 'admin_page'));
|
$page = add_theme_page(__('Background'), __('Background'), 'switch_themes', 'custom-background', array(&$this, 'admin_page'));
|
||||||
|
|
||||||
add_action("admin_head-$page", array(&$this, 'take_action'), 50);
|
add_action("admin_head-$page", array(&$this, 'take_action'), 50);
|
||||||
if ( $this->admin_header_callback )
|
if ( $this->admin_header_callback )
|
||||||
|
|
|
@ -55,7 +55,7 @@ class Custom_Image_Header {
|
||||||
if ( ! current_user_can('switch_themes') )
|
if ( ! current_user_can('switch_themes') )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$page = add_theme_page(__('Custom Header'), __('Custom Header'), 'switch_themes', 'custom-header', array(&$this, 'admin_page'));
|
$page = add_theme_page(__('Header'), __('Header'), 'switch_themes', 'custom-header', array(&$this, 'admin_page'));
|
||||||
|
|
||||||
add_action("admin_print_scripts-$page", array(&$this, 'js_includes'));
|
add_action("admin_print_scripts-$page", array(&$this, 'js_includes'));
|
||||||
add_action("admin_print_styles-$page", array(&$this, 'css_includes'));
|
add_action("admin_print_styles-$page", array(&$this, 'css_includes'));
|
||||||
|
|
|
@ -108,7 +108,7 @@ $menu[60] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-to
|
||||||
$submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php');
|
$submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php');
|
||||||
$submenu['themes.php'][10] = array(_x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');
|
$submenu['themes.php'][10] = array(_x('Editor', 'theme editor'), 'edit_themes', 'theme-editor.php');
|
||||||
$submenu['themes.php'][15] = array(__('Add New Themes'), 'install_themes', 'theme-install.php');
|
$submenu['themes.php'][15] = array(__('Add New Themes'), 'install_themes', 'theme-install.php');
|
||||||
$submenu['themes.php'][20] = array(__('Custom Navigation'), 'switch_themes', 'custom-navigation.php');
|
$submenu['themes.php'][20] = array(__('Menus'), 'switch_themes', 'custom-navigation.php');
|
||||||
|
|
||||||
$update_plugins = get_site_transient( 'update_plugins' );
|
$update_plugins = get_site_transient( 'update_plugins' );
|
||||||
$update_count = 0;
|
$update_count = 0;
|
||||||
|
|
Loading…
Reference in New Issue