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.') . '
' . __('Click Save Menu to make pending menu items public.') . '