Ticket #41882: 41882.diff
File 41882.diff, 683 bytes (added by , 7 years ago) |
---|
-
.php
old new 523 523 'taxonomy' => 'category', 524 524 'title_li' => __( 'Categories' ), 525 525 'use_desc_for_title' => 1, 526 'html_wrapper_element' => '' 526 527 ); 527 528 528 529 $r = wp_parse_args( $args, $defaults ); … … 634 635 * @param array $args An array of taxonomy-listing arguments. 635 636 */ 636 637 $html = apply_filters( 'wp_list_categories', $output, $args ); 638 if( isset($r['html_wrapper_element']) && $r['html_wrapper_element'] === 'dropdown') { 639 $html = '<select>' . $html . '</select>'; 640 } 637 641 638 642 if ( $r['echo'] ) { 639 643 echo $html;