WordPress.org

Make WordPress Core

Ticket #14551: 14551.diff

File 14551.diff, 692 bytes (added by wojtek.szkutnik, 5 years ago)
  • nav-menu-template.php

     
    258258        $possible_taxonomy_ancestors = array(); 
    259259        $possible_object_parents = array(); 
    260260        $home_page_id = (int) get_option( 'page_for_posts' ); 
     261        $front_page_display = get_option( 'show_on_front' ); 
     262         
     263        if ( 'posts' == $front_page_display )  
     264                $home_page_id = 0; 
    261265 
    262266        if ( $wp_query->is_singular && ! empty( $queried_object->post_type ) && ! is_post_type_hierarchical( $queried_object->post_type ) ) { 
    263267                foreach ( (array) get_object_taxonomies( $queried_object->post_type ) as $taxonomy ) {