Make WordPress Core

Changeset 13938


Ignore:
Timestamp:
04/02/2010 05:13:57 AM (13 years ago)
Author:
dd32
Message:

Move children of nested levels not shown to after the current element, not inside it like children. See #8841

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r13932 r13938  
    13131313            }
    13141314            unset( $children_elements[ $id ] );
    1315         } elseif ( $max_depth <= $depth + 1 && isset( $children_elements[$id]) ) {
    1316             // this elseif block is the only change from Walker::display_element()
    1317             foreach( $children_elements[ $id ] as $child )
    1318                 $this->display_element( $child, $children_elements, $max_depth, $depth, $args, $output );
    1319             unset( $children_elements[ $id ] );
    13201315        }
    13211316
     
    13291324        $cb_args = array_merge( array(&$output, $element, $depth), $args);
    13301325        call_user_func_array(array(&$this, 'end_el'), $cb_args);
     1326
     1327        if ( $max_depth <= $depth + 1 && isset( $children_elements[$id]) ) {
     1328            // this if block is the only change from Walker::display_element()
     1329            foreach ( $children_elements[ $id ]  as $child )
     1330                $this->display_element( $child, $children_elements, $max_depth, $depth, $args, $output );
     1331            unset( $children_elements[ $id ] );
     1332        }
     1333
    13311334    }
    13321335
Note: See TracChangeset for help on using the changeset viewer.