From 48bc4e220c191c014e00ad90cf75aa4244d3185e Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 14 Jun 2010 19:52:30 +0000 Subject: [PATCH] Revert [15219], [15250], some of [15249] for 3.0, revisit in 3.0.1. see #13822. git-svn-id: http://svn.automattic.com/wordpress/trunk@15254 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/nav-menu.php | 50 +++++------------- wp-admin/nav-menus.php | 4 +- wp-includes/default-filters.php | 2 +- wp-includes/nav-menu.php | 89 ++++++++++++--------------------- 4 files changed, 46 insertions(+), 99 deletions(-) diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index 89f2059d4b..e467559841 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -71,14 +71,9 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { $title = $item->title; if ( isset( $item->post_status ) && 'draft' == $item->post_status ) { - $original_status = get_post_status_object( $original_object->post_status ); - $classes[] = "draft post-status-$original_object->post_status"; - /* translators: 1: title of menu item in draft status, 2: actual post status. */ - $title = sprintf( __('%1$s (%2$s)'), $item->title, $original_status->label ); - } elseif ( isset( $item->post_status ) && 'pending' == $item->post_status ) { - $classes[] = 'unsaved'; - /* translators: %s: title of menu item in pending status */ - $title = sprintf( __('%s (Unsaved)'), $item->title ); + $classes[] = 'pending'; + /* translators: %s: title of menu item in draft status */ + $title = sprintf( __('%s (Pending)'), $item->title ); } $title = empty( $item->label ) ? $title : $item->label; @@ -177,27 +172,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { @@ -973,7 +947,7 @@ function wp_nav_menu_item_taxonomy_meta_box( $object, $taxonomy ) { * * @since 3.0.0 * - * @param int $menu_id The menu ID for which to save this item. $menu_id of 0 makes a pending, orphaned menu item. + * @param int $menu_id The menu ID for which to save this item. $menu_id of 0 makes a draft, orphaned menu item. * @param array $menu_data The unsanitized posted menu item data. * @return array The database IDs of the items saved */ @@ -1105,12 +1079,12 @@ function wp_get_nav_menu_to_edit( $menu_id = 0 ) { $some_pending_menu_items = false; foreach( (array) $menu_items as $menu_item ) { - if ( isset( $menu_item->post_status ) && 'pending' == $menu_item->post_status ) + if ( isset( $menu_item->post_status ) && 'draft' == $menu_item->post_status ) $some_pending_menu_items = true; } if ( $some_pending_menu_items ) - $result .= '

' . __('Click Save Menu to make unsaved menu items public.') . '

'; + $result .= '

' . __('Click Save Menu to make pending menu items public.') . '

'; $result .= '