Ticket #14687: Parent-menu-item.patch
File Parent-menu-item.patch, 797 bytes (added by , 13 years ago) |
---|
-
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 $cb_args = array_merge( array(&$output, $element, $depth), $args); 128 129 //Adds the 'parent-menu-item' class to the current item if it has children 130 if( ! empty( $children_elements[$element->$id_field] ) ) 131 $element->classes[] = 'parent-menu-item'; 132 133 $cb_args = array_merge( array(&$output, $element, $depth), $args); 129 134 call_user_func_array(array(&$this, 'start_el'), $cb_args); 130 135 131 136 $id = $element->$id_field;