Opened 15 years ago
Closed 15 years ago
#13468 closed defect (bug) (fixed)
wp_dropdown_users() selected parameter doesn't respect show_option_none
Reported by: | johnbillion | Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | minor | Version: | 3.0 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
In wp_dropdown_users()
you can pass a string as the show_option_none
parameter and an option will be added with that string and a value of '-1'. If you pass '-1' as the selected
parameter however, this option will not be selected as the relevant check is missing from the function.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
patch
Note that the same thing isn't needed for the
show_option_all
option as this will be selected by default if theselected
parameter is missing or 0.