WordPress.org

Make WordPress Core

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

File class-wp-walker.php.patch, 595 bytes (added by rodrigosprimo, 5 years ago)

Patch

  • wp-includes/class-wp-walker.php

     
    123123                $id_field = $this->db_fields['id'];
    124124
    125125                //display this element
    126                 if ( is_array( $args[0] ) )
     126                if ( isset( $args[0] ) && is_array( $args[0] ) )
    127127                        $args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] );
    128128                $cb_args = array_merge( array(&$output, $element, $depth), $args);
    129129                call_user_func_array(array($this, 'start_el'), $cb_args);