Ticket #34446: 34446.diff
File 34446.diff, 510 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/class-wp-walker.php
215 215 $top_level_elements = array(); 216 216 $children_elements = array(); 217 217 foreach ( $elements as $e) { 218 if ( 0 == $e->$parent_field)218 if ( empty( $e->$parent_field ) ) 219 219 $top_level_elements[] = $e; 220 220 else 221 221 $children_elements[ $e->$parent_field ][] = $e;