Ticket #21862: patch-category-template.diff

File patch-category-template.diff, 637 bytes (added by nofearinc, 9 months ago)

remove the conditional statement where categories do exist

  • category-template.php

     
    353353                        $output .= "\t<option value='0'$selected>$show_option_all</option>\n"; 
    354354                } 
    355355 
    356                 if ( $show_option_none ) { 
    357                         $show_option_none = apply_filters( 'list_cats', $show_option_none ); 
    358                         $selected = ( '-1' === strval($r['selected']) ) ? " selected='selected'" : ''; 
    359                         $output .= "\t<option value='-1'$selected>$show_option_none</option>\n"; 
    360                 } 
    361  
    362356                if ( $hierarchical ) 
    363357                        $depth = $r['depth'];  // Walk the full depth. 
    364358                else