Make WordPress Core

Ticket #14102: page_with_children.diff

File page_with_children.diff, 550 bytes (added by scribu, 15 years ago)
  • wp-includes/classes.php

     
    11881188
    11891189                extract($args, EXTR_SKIP);
    11901190                $css_class = array('page_item', 'page-item-'.$page->ID);
     1191                if ( $has_children )
     1192                        $css_class[] = 'page_with_children';
    11911193                if ( !empty($current_page) ) {
    11921194                        $_current_page = get_page( $current_page );
    11931195                        if ( isset($_current_page->ancestors) && in_array($page->ID, (array) $_current_page->ancestors) )