Changeset 9830
- Timestamp:
- 11/21/2008 05:17:18 PM (16 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r9812 r9830 823 823 824 824 //display this element 825 if ( ! empty( $args[0] ) )825 if ( is_array( $args[0] ) ) 826 826 $args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] ); 827 827 $cb_args = array_merge( array(&$output, $element, $depth), $args); … … 1153 1153 * @param array $args 1154 1154 */ 1155 function start_el(&$output, $page, $depth, $ current_page, $args) {1155 function start_el(&$output, $page, $depth, $args, $current_page) { 1156 1156 if ( $depth ) 1157 1157 $indent = str_repeat("\t", $depth); -
trunk/wp-includes/post-template.php
r9816 r9830 688 688 * @see Walker_Page::walk() for parameters and return description. 689 689 */ 690 function walk_page_tree( ) {690 function walk_page_tree($pages, $depth, $current_page, $r) { 691 691 $walker = new Walker_Page; 692 $args = func_get_args();692 $args = array($pages, $depth, $r, $current_page); 693 693 return call_user_func_array(array(&$walker, 'walk'), $args); 694 694 }
Note: See TracChangeset
for help on using the changeset viewer.