Ticket #21534: has_children.patch
| File has_children.patch, 623 bytes (added by , 13 years ago) |
|---|
-
wp-includes/class-wp-walker.php
125 125 //display this element 126 126 if ( is_array( $args[0] ) ) 127 127 $args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] ); 128 else if ( is_object( $args[0] ) ) 129 $args[0]->has_children = ! empty( $children_elements[$element->$id_field] ); 128 130 $cb_args = array_merge( array(&$output, $element, $depth), $args); 129 131 call_user_func_array(array(&$this, 'start_el'), $cb_args); 130 132