Changeset 25602 for trunk/src/wp-includes/post-template.php
- Timestamp:
- 09/24/2013 04:00:14 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r25582 r25602 956 956 $walker = $r['walker']; 957 957 958 foreach ( (array) $pages as $page ) { 959 if ( $page->post_parent ) 960 $r['pages_with_children'][ $page->post_parent ] = true; 961 } 962 958 963 $args = array($pages, $depth, $r, $current_page); 959 964 return call_user_func_array(array($walker, 'walk'), $args); … … 1044 1049 extract($args, EXTR_SKIP); 1045 1050 $css_class = array('page_item', 'page-item-'.$page->ID); 1051 1052 if( isset( $args['pages_with_children'][ $page->ID ] ) ) 1053 $css_class[] = 'page_item_has_children'; 1054 1046 1055 if ( !empty($current_page) ) { 1047 1056 $_current_page = get_post( $current_page );
Note: See TracChangeset
for help on using the changeset viewer.