Ticket #15667: class-wp-walker.php.1.diff
File class-wp-walker.php.1.diff, 510 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/class-wp-walker.php
diff --git src/wp-includes/class-wp-walker.php src/wp-includes/class-wp-walker.php index 547defe..77c6f6c 100644
class Walker { 219 219 * When none of the elements is top level. 220 220 * Assume the first one must be root of the sub elements. 221 221 */ 222 if ( empty($top_level_elements) ) {222 if ( empty($top_level_elements) && $max_depth !== 1 ) { 223 223 224 224 $first = array_slice( $elements, 0, 1 ); 225 225 $root = $first[0];