WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/20/2012 07:47:52 PM (9 years ago)
Author:
ryan
Message:

Introduce WP_Post class. Clean up ancestors handling. Props scribu, toppa. fixes #10381 see #21309

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/nav-menu-template.php

    r21252 r21559  
    287287            }
    288288        }
    289     } elseif ( ! empty( $queried_object->post_type ) && is_post_type_hierarchical( $queried_object->post_type ) ) {
    290         _get_post_ancestors( $queried_object );
    291289    } elseif ( ! empty( $queried_object->taxonomy ) && is_taxonomy_hierarchical( $queried_object->taxonomy ) ) {
    292290        $term_hierarchy = _get_term_hierarchy( $queried_object->taxonomy );
Note: See TracChangeset for help on using the changeset viewer.