﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
23272,Notice on class-wp-walker.php,rodrigosprimo,SergeyBiryukov,"When using the Walker class I get the following notice:

Notice: Undefined offset: 0 in wp-includes/class-wp-walker.php on line 126

{{{
//display this element
if ( is_array( $args[0] ) )
    $args[0]['has_children'] = ! empty( $children_elements[$element->$id_field] );
}}}

If I'm not mistaken, this problem is happening because the code assumes that the $args variable is always a non empty array which is not the case.

I'm attaching the code I used to reproduce the problem and a patch to fix it.",defect (bug),closed,normal,3.6,Warnings/Notices,2.7,normal,fixed,has-patch commit dev-reviewed,
