#15222 closed enhancement (invalid)
show_option_all_included for wp_dropdown_categories
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.1 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
this little addition lets user have an option which allows searching in all categories included in dropdown only. put it below handling of show_option_all option in wp_dropdown_categories
if($show_option_all_included)
{
$show_option_all = apply_filters( 'list_cats', $show_option_all_included );
$selected = ( '0' === strval($rselected?) ) ? " selected='selected'" : ;
$vals = ;
foreach($categories as $cat)
$vals .= $cat->term_id.',';
$vals = substr($vals, 0, -1);
$output .= "\t<option value='$vals'$selected>$show_option_all</option>\n";
}
Change History (3)
Note: See
TracTickets for help on using
tickets.
opss code is messed up. grab it at http://pastebin.com/iXjGcrc3