Changeset 32545 for trunk/src/wp-admin/includes/nav-menu.php
- Timestamp:
- 05/22/2015 05:46:47 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/nav-menu.php
r31973 r32545 1281 1281 $menu_item_db_id = wp_update_nav_menu_item( $nav_menu_selected_id, ( $_POST['menu-item-db-id'][$_key] != $_key ? 0 : $_key ), $args ); 1282 1282 1283 if ( is_wp_error( $menu_item_db_id ) ) 1283 if ( is_wp_error( $menu_item_db_id ) ) { 1284 1284 $messages[] = '<div id="message" class="error"><p>' . $menu_item_db_id->get_error_message() . '</p></div>'; 1285 elseif ( isset( $menu_items[$menu_item_db_id] ) ) 1286 unset( $menu_items[$menu_item_db_id] ); 1285 } else { 1286 unset( $menu_items[ $menu_item_db_id ] ); 1287 } 1287 1288 } 1288 1289 }
Note: See TracChangeset
for help on using the changeset viewer.