You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect to be able to use user_dropdown() and set selected to an array of user IDs. I expect this because it supports the multiple parameter, which allows you to select multiple users.
Actual behavior
When you pass in an array of user IDs you get this notice:
array_key_exists(): The first argument should be either a string or an integer
Bug Report
Expected behavior
I expect to be able to use
user_dropdown()
and setselected
to an array of user IDs. I expect this because it supports themultiple
parameter, which allows you to select multiple users.Actual behavior
When you pass in an array of user IDs you get this notice:
This is due to using
array_key_exists()
with$args['selected']
here: https://github.com/easydigitaldownloads/easy-digital-downloads/blob/master/includes/class-edd-html-elements.php#L343-L357 This fails if$args['selected']
is an array.Steps to reproduce the behavior
Information (if a specific version is affected):
PHP Version:
EDD Version (or branch):
WordPress Version:
Any other relevant information:
The text was updated successfully, but these errors were encountered: