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

git-svn-id: https://develop.svn.wordpress.org/trunk@14295 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2010-04-29 07:33:56 +00:00
parent 4defadbe97
commit 5dbf47294f
6 changed files with 153 additions and 17 deletions

View File

@@ -808,7 +808,7 @@ function wp_nav_menu_item_taxonomy_meta_box( $object, $taxonomy ) {
*
* @param int $menu_id The menu ID for which to save this item.
* @param array $menu_data The unsanitized posted menu item data.
* @return array The database IDs of the items saved.
* @return array The database IDs of the items saved
*/
function wp_save_nav_menu_item( $menu_id = 0, $menu_data = array() ) {
$menu_id = (int) $menu_id;