Changeset 15047
- Timestamp:
- 05/28/2010 08:41:39 PM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r15008 r15047 824 824 $menu_obj = get_post( $menu_item_id ); 825 825 if ( ! empty( $menu_obj->ID ) ) { 826 $menu_items[] = wp_setup_nav_menu_item( $menu_obj ); 826 $menu_obj = wp_setup_nav_menu_item( $menu_obj ); 827 $menu_obj->label = $menu_obj->title; // don't show "(pending)" in ajax-added items 828 $menu_items[] = $menu_obj; 827 829 } 828 830 } -
trunk/wp-admin/includes/nav-menu.php
r15045 r15047 73 73 $title = sprintf( __('%s (Pending)'), $item->title ); 74 74 } 75 76 $title = empty( $item->label ) ? $title : $item->label; 75 77 76 78 ?>
Note: See TracChangeset
for help on using the changeset viewer.