id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 22342 "WP_DEBUG ""undefined index"" notices in get_metadata() for empty arrays" doublesharp "When the WP_DEBUG constant is set, calling get_metadata() in /wp-includes/meta.php with $single==true can cause ""undefined index"" notices when the meta data value is an empty array. As null is an acceptable return value for this function, silencing the notice with @ will remove noise when debugging without the overhead of checking the array length or that the 0 index isset()." enhancement closed normal Options, Meta APIs 3.1 minor invalid has-patch needs-testing dev-feedback 2nd-opinion