[wp-trac] [WordPress Trac] #30082: Add "class" argument to "wp_dropdown_pages()"

WordPress Trac noreply at wordpress.org
Thu Oct 23 12:25:00 UTC 2014


#30082: Add "class" argument to "wp_dropdown_pages()"
--------------------------------------+-----------------------------
 Reporter:  ramiy                     |      Owner:
     Type:  defect (bug)              |     Status:  new
 Priority:  normal                    |  Milestone:  Awaiting Review
Component:  Posts, Post Types         |    Version:  trunk
 Severity:  normal                    |   Keywords:
  Focuses:  administration, template  |
--------------------------------------+-----------------------------
 I've created a plugin that is using `wp_dropdown_pages()` function to show
 a `<select>` box with all the site pages.

 The next step was to create a sidebar widget with a few `<select>` box's
 and a page dropdown. Now, in order to give my widget a smote WordPress
 style i use `class="widefat"`. But `wp_dropdown_pages()` don't accept
 "class" argument, so my widget have a few full-wide select boxes and one
 regular select box.

 I would like to be able to add classes to `wp_dropdown_pages()`. By the
 way, `wp_dropdown_categories()` and `wp_dropdown_users()` both accept
 "class" argument.

 This is a simple fix. I'm attaching a patch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30082>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list