WordPress.org

Make WordPress Core

Changeset 16834


Ignore:
Timestamp:
12/09/10 12:38:23 (4 years ago)
Author:
nacin
Message:

_get_post_ancestors() in Walker_Page. props layotte, fixes #14329.

File:
1 edited

Legend:

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

    r16693 r16834  
    10211021        if ( !empty($current_page) ) { 
    10221022            $_current_page = get_page( $current_page ); 
     1023            _get_post_ancestors($_current_page); 
    10231024            if ( isset($_current_page->ancestors) && in_array($page->ID, (array) $_current_page->ancestors) ) 
    10241025                $css_class[] = 'current_page_ancestor'; 
Note: See TracChangeset for help on using the changeset viewer.