Skip to content

Commit

Permalink
Update src/wp-includes/nav-menu.php
Browse files Browse the repository at this point in the history
  • Loading branch information
spacedmonkey committed Nov 8, 2021
1 parent 267439d commit 5410fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/nav-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ function wp_update_nav_menu_item( $menu_id = 0, $menu_item_db_id = 0, $menu_item
$post['ID'] = $menu_item_db_id;
$post['post_status'] = ( 'draft' === $args['menu-item-status'] ) ? 'draft' : 'publish';

$update_post = wp_update_post( $post );
$update_post = wp_update_post( $post, true );
if ( is_wp_error( $update_post ) ) {
return $update_post;
}
Expand Down

0 comments on commit 5410fba

Please sign in to comment.