$is_placeholder =
( $this->term_id < 0
);
$is_delete =
( false ===
$value );
add_filter( 'customize_save_response', array
( $this, 'amend_customize_save_response'
) );
$auto_add = null;
if ( $is_delete ) { // If the current setting term is a placeholder, a delete request is a no-op.
if ( $is_placeholder ) { $this->update_status = 'deleted';
} else { $r =
wp_delete_nav_menu( $this->term_id
);
if ( is_wp_error( $r ) ) { $this->update_status = 'error';
$this->update_error =
$r;
} else { $this->update_status = 'deleted';
$auto_add = false;
} } } else { // Insert or update menu.