#24103 closed enhancement (fixed)
the wp_dropdown_cats filter should pass the args as a second parameter
Reported by: | olivM | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | template | Cc: |
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.
patch to add a second parameter to the wp_dropdown_cats filter