WordPress.org

Make WordPress Core

Ticket #24103: wp_dropdown_categories-patch.txt

File wp_dropdown_categories-patch.txt, 477 bytes (added by olivM, 23 months ago)

patch to add a second parameter to the wp_dropdown_cats filter

Line 
1Index: wp-includes/category-template.php
2===================================================================
3--- wp-includes/category-template.php   (revision 24000)
4+++ wp-includes/category-template.php   (working copy)
5@@ -370,7 +370,7 @@
6        if ( ! $r['hide_if_empty'] || ! empty($categories) )
7                $output .= "</select>\n";
8 
9-       $output = apply_filters( 'wp_dropdown_cats', $output );
10+       $output = apply_filters( 'wp_dropdown_cats', $output, $r );
11 
12        if ( $echo )
13                echo $output;