Make WordPress Core

Opened 14 years ago

Closed 12 years ago

Last modified 12 years ago

#15222 closed enhancement (invalid)

show_option_all_included for wp_dropdown_categories

Reported by: roxaz's profile roxaz 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)

#1 @roxaz
14 years ago

opss code is messed up. grab it at http://pastebin.com/iXjGcrc3

#2 @c3mdigital
12 years ago

  • Keywords close added
  • Resolution set to invalid
  • Status changed from new to closed
  • Version changed from 3.0.1 to 2.1

There already is a show_option_all choice along with a filter if needed.

#3 @helen
12 years ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.