[wp-trac] [WordPress Trac] #24103: the wp_dropdown_cats filter should pass the args as a second parameter
WordPress Trac
noreply at wordpress.org
Tue Apr 16 14:45:18 UTC 2013
#24103: the wp_dropdown_cats filter should pass the args as a second parameter
-----------------------------+----------------------------
Reporter: olivM | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Administration
Version: trunk | Severity: normal
Keywords: has-patch |
-----------------------------+----------------------------
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;
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24103>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list