mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 10:02:43 +01:00
Make sure the array exists before adding an element to it. props rodrigosprimo. fixes #23272.
git-svn-id: https://develop.svn.wordpress.org/trunk@23346 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
44a1c8b227
commit
3870e8f25c
@ -123,7 +123,7 @@ class Walker {
|
||||
$id_field = $this->db_fields['id'];
|
||||
|
||||
//display this element
|
||||
if ( is_array( $args[0] ) )
|
||||
if ( isset( $args[0] ) && is_array( $args[0] ) )
|
||||
$args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] );
|
||||
$cb_args = array_merge( array(&$output, $element, $depth), $args);
|
||||
call_user_func_array(array($this, 'start_el'), $cb_args);
|
||||
|
Loading…
x
Reference in New Issue
Block a user