WordPress.org

Make WordPress Core

Opened 6 months ago

Last modified 6 months ago

#42521 new feature request

create WP_DROPDOWN function

Reported by: tazotodua Owned by:
Milestone: Awaiting Review Priority: low
Severity: normal Version:
Component: Administration Keywords: 2nd-opinion close
Focuses: Cc:

Description

there are bunch of dropdown functions, like wp_categories_dropdown(), wp-pages-dropdowns, users and etc (i dont remember even).

It was good, there was common wp_dropdown function, which will accept $type as argument (or in array):

wp_dropdown(array('type'=>'pages', ..... ))
or
wp_dropdown(array('type'=>'categories', ..... ))
or
wp_dropdown(array('type'=>'users', ..... ))
or so on

Change History (2)

#1 @tazotodua
6 months ago

same could be done with other similar functions, like, instead of wp_category_checklist there was wp_checklist, accepting different types..

#2 @dd32
6 months ago

  • Component changed from General to Administration
  • Keywords 2nd-opinion close added
  • Priority changed from normal to low

Adding a generic PHP dropdown function doesn't seem like a worthy use of time at present, especially as more user interfaces slowly move to a Javascript-based approach (where dropdowns will hopeufully be a lot smoother and handle larger-sites)

Note: See TracTickets for help on using tickets.