WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/29/2010 07:33:56 AM (11 years ago)
Author:
nacin
Message:

When posts/terms are deleted/trashed, update associated menu items. Deleted post = deleted menu item, trashed post = menu item becomes a draft. props filosofo, see #13174

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/nav-menu.php

    r14293 r14295  
    809809 * @param int $menu_id The menu ID for which to save this item.
    810810 * @param array $menu_data The unsanitized posted menu item data.
    811  * @return array The database IDs of the items saved.
     811 * @return array The database IDs of the items saved
    812812 */
    813813function wp_save_nav_menu_item( $menu_id = 0, $menu_data = array() ) {
Note: See TracChangeset for help on using the changeset viewer.