Ticket #19776: 19776.4.patch
File 19776.4.patch, 892 bytes (added by , 11 years ago) |
---|
-
wp-includes/category-template.php
337 337 $class = esc_attr( $class ); 338 338 $id = $id ? esc_attr( $id ) : $name; 339 339 340 $output = ''; 340 341 if ( ! $r['hide_if_empty'] || ! empty($categories) ) 341 342 $output = "<select name='$name' id='$id' class='$class' $tab_index_attribute>\n"; 342 else343 $output = '';344 343 345 if ( empty($categories) && ! $r['hide_if_empty'] && !empty($show_option_none) ) { 344 if ( empty($categories) && ! $r['hide_if_empty'] ) { 345 $show_option_none = ! empty( $show_option_none ) ? $show_option_none : __( 'No Terms' ); 346 346 $show_option_none = apply_filters( 'list_cats', $show_option_none ); 347 347 $output .= "\t<option value='-1' selected='selected'>$show_option_none</option>\n"; 348 348 }