diff --git a/src/wp-admin/includes/nav-menu.php b/src/wp-admin/includes/nav-menu.php
index 9816198996..dbd6e52339 100644
a
|
b
|
function wp_nav_menu_item_post_type_meta_box( $data_object, $box ) { |
432 | 432 | $front_page = 'page' === get_option( 'show_on_front' ) ? (int) get_option( 'page_on_front' ) : 0; |
433 | 433 | |
434 | 434 | $front_page_obj = null; |
| 435 | |
435 | 436 | if ( ! empty( $front_page ) ) { |
436 | | $front_page_obj = get_post( $front_page ); |
| 437 | $front_page_obj = get_post( $front_page ); |
| 438 | } |
| 439 | |
| 440 | if ( $front_page_obj ) { |
437 | 441 | $front_page_obj->front_or_home = true; |
438 | 442 | |
439 | 443 | $important_pages[] = $front_page_obj; |
… |
… |
function wp_nav_menu_item_post_type_meta_box( $data_object, $box ) { |
460 | 464 | $posts_page = 'page' === get_option( 'show_on_front' ) ? (int) get_option( 'page_for_posts' ) : 0; |
461 | 465 | |
462 | 466 | if ( ! empty( $posts_page ) ) { |
463 | | $posts_page_obj = get_post( $posts_page ); |
464 | | $posts_page_obj->posts_page = true; |
| 467 | $posts_page_obj = get_post( $posts_page ); |
465 | 468 | |
466 | | $important_pages[] = $posts_page_obj; |
467 | | $suppress_page_ids[] = $posts_page_obj->ID; |
| 469 | if ( $posts_page_obj ) { |
| 470 | $front_page_obj->posts_page = true; |
| 471 | |
| 472 | $important_pages[] = $posts_page_obj; |
| 473 | $suppress_page_ids[] = $posts_page_obj->ID; |
| 474 | } |
468 | 475 | } |
469 | 476 | |
470 | 477 | // Insert Privacy Policy Page. |