WordPress.org

Make WordPress Core

Ticket #9059: 9059.patch

File 9059.patch, 582 bytes (added by Viper007Bond, 5 years ago)

Simple but effective workaround

  • wp-includes/general-template.php

     
    548548        $cat = intval( get_query_var('cat') ); 
    549549        if ( !empty($cat) && !(strtoupper($cat) == 'ALL') ) { 
    550550                $my_cat_name = apply_filters('single_cat_title', get_the_category_by_ID($cat)); 
    551                 if ( !empty($my_cat_name) ) { 
     551                if ( '0' === $my_cat_name || !empty($my_cat_name) ) { 
    552552                        if ( $display ) 
    553553                                echo $prefix.strip_tags($my_cat_name); 
    554554                        else