Ticket #8091: consistent_start_el_args.diff
| File consistent_start_el_args.diff, 1.4 KB (added by , 18 years ago) |
|---|
-
wp-includes/post-template.php
687 687 * @since 2.1.0 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 } 695 695 -
wp-includes/classes.php
822 822 $id_field = $this->db_fields['id']; 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); 828 828 call_user_func_array(array(&$this, 'start_el'), $cb_args); … … 1152 1152 * @param int $current_page Page ID. 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); 1158 1158 else
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)