Make WordPress Core

Ticket #15214: class-wp-walker.php.patch

File class-wp-walker.php.patch, 591 bytes (added by bjornjohansen, 13 years ago)

Updated patch

  • class-wp-walker.php

     
    125125                //display this element
    126126                if ( is_array( $args[0] ) )
    127127                        $args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] );
     128                elseif ( is_object( $args[0] ) )
     129                        $args[0]->has_children = ! empty( $children_elements[$element->$id_field] );
    128130                $cb_args = array_merge( array(&$output, $element, $depth), $args);
    129131                call_user_func_array(array(&$this, 'start_el'), $cb_args);
    130132