From 610abdf2a591b0fa58de4fd7dc4044884abf7cdc Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 28 Apr 2010 04:09:00 +0000 Subject: [PATCH] Some menus meta box cleanups. props filosofo, see #13143. git-svn-id: https://develop.svn.wordpress.org/trunk@14267 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/css/nav-menu.dev.css | 2 +- wp-admin/includes/nav-menu.php | 10 +++++----- wp-admin/js/nav-menu.dev.js | 36 +++++++++++++++++++++++++++++++--- 3 files changed, 39 insertions(+), 9 deletions(-) diff --git a/wp-admin/css/nav-menu.dev.css b/wp-admin/css/nav-menu.dev.css index d9c5b21ac6..465b3be5eb 100644 --- a/wp-admin/css/nav-menu.dev.css +++ b/wp-admin/css/nav-menu.dev.css @@ -87,7 +87,7 @@ float: right; } -form.processing .add-to-menu { +.processing .add-to-menu { background: url("../images/wpspin_light.gif") no-repeat top center; display:block; height:20px; diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index 0091074c6e..9d2bfd3e26 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -260,7 +260,7 @@ function _wp_ajax_menu_quick_search( $request = array() ) { * @since 3.0.0 **/ function wp_nav_menu_meta_boxes_setup() { - add_meta_box( 'add-custom-links', __('Add Custom Links'), 'wp_nav_menu_item_link_meta_box', 'nav-menus', 'side', 'default' ); + add_meta_box( 'add-custom-links', __('Custom Links'), 'wp_nav_menu_item_link_meta_box', 'nav-menus', 'side', 'default' ); wp_nav_menu_post_type_meta_boxes(); wp_nav_menu_taxonomy_meta_boxes(); } @@ -310,7 +310,7 @@ function wp_nav_menu_post_type_meta_boxes() { foreach ( $post_types as $post_type ) { $id = $post_type->name; - add_meta_box( "add-{$id}", sprintf( __('Add %s'), $post_type->label ), 'wp_nav_menu_item_post_type_meta_box', 'nav-menus', 'side', 'default', $post_type ); + add_meta_box( "add-{$id}", $post_type->label, 'wp_nav_menu_item_post_type_meta_box', 'nav-menus', 'side', 'default', $post_type ); } } @@ -327,7 +327,7 @@ function wp_nav_menu_taxonomy_meta_boxes() { foreach ( $taxonomies as $tax ) { $id = $tax->name; - add_meta_box( "add-{$id}", sprintf( __('Add %s'), $tax->label ), 'wp_nav_menu_item_taxonomy_meta_box', 'nav-menus', 'side', 'default', $tax ); + add_meta_box( "add-{$id}", $tax->label, 'wp_nav_menu_item_taxonomy_meta_box', 'nav-menus', 'side', 'default', $tax ); } } @@ -486,7 +486,7 @@ function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) { if ( !$posts ) $error = '
  • '. sprintf( __( 'No %s exists' ), $post_type['args']->label ) .'
  • '; - $current_tab = 'search'; + $current_tab = 'all'; if ( isset( $_REQUEST[$post_type_name . '-tab'] ) && in_array( $_REQUEST[$post_type_name . '-tab'], array('all', 'search') ) ) { $current_tab = $_REQUEST[$post_type_name . '-tab']; } @@ -507,8 +507,8 @@ function wp_nav_menu_item_post_type_meta_box( $object, $post_type ) { ?>