Changeset 7130 for trunk/wp-includes/classes.php
- Timestamp:
- 03/02/2008 08:17:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r7109 r7130 417 417 $output = call_user_func_array(array(&$this, 'start_el'), $cb_args); 418 418 419 if ( $max_depth == 0 || 419 if ( $max_depth == 0 || 420 420 ($max_depth != 0 && $max_depth > $depth+1 )) { //whether to descend 421 421 422 422 for ( $i = 0; $i < sizeof( $children_elements ); $i++ ) { 423 423 424 424 $child = $children_elements[$i]; 425 425 if ( $child->$parent_field == $element->$id_field ) { 426 426 427 427 if ( !isset($newlevel) ) { 428 $newlevel = true; 428 $newlevel = true; 429 429 //start the child delimiter 430 430 $cb_args = array_merge( array($output, $depth), $args); 431 431 $output = call_user_func_array(array(&$this, 'start_lvl'), $cb_args); 432 432 } 433 433 434 434 array_splice( $children_elements, $i, 1 ); 435 435 $output = $this->display_element( $child, $children_elements, $max_depth, $depth + 1, $args, $output ); … … 438 438 } 439 439 } 440 440 441 441 if ( isset($newlevel) && $newlevel ){ 442 442 //end the child delimiter … … 444 444 $output = call_user_func_array(array(&$this, 'end_lvl'), $cb_args); 445 445 } 446 446 447 447 //end this element 448 448 $cb_args = array_merge( array($output, $element, $depth), $args);
Note: See TracChangeset
for help on using the changeset viewer.