Opened 16 years ago
Closed 16 years ago
#13468 closed defect (bug) (fixed)
wp_dropdown_users() selected parameter doesn't respect show_option_none
| Reported by: | johnbillion | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Administration | Version: | 3.0 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
patch
Note that the same thing isn't needed for the
show_option_alloption as this will be selected by default if theselectedparameter is missing or 0.