#24103 closed enhancement (fixed)
the wp_dropdown_cats filter should pass the args as a second parameter
| Reported by: | olivM | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Taxonomy | Version: | 3.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | template |
Description
effectively filtering the output of the wp_dropdown_categories function is only possible knowing their args
Index: wp-includes/category-template.php =================================================================== --- wp-includes/category-template.php (revision 24000) +++ wp-includes/category-template.php (working copy) @@ -370,7 +370,7 @@ if ( ! $r['hide_if_empty'] || ! empty($categories) ) $output .= "</select>\n"; - $output = apply_filters( 'wp_dropdown_cats', $output ); + $output = apply_filters( 'wp_dropdown_cats', $output, $r ); if ( $echo ) echo $output;
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
patch to add a second parameter to the wp_dropdown_cats filter