Ticket #3967: wp_title_fixup.patch

File wp_title_fixup.patch, 0.6 kB (added by dwc, 2 years ago)
  • wp-includes/template-functions-general.php

    old new  
    137137 
    138138 
    139139function wp_title($sep = '»', $display = true) { 
    140         global $wpdb, $month; 
     140        global $wpdb, $posts, $month; 
    141141 
    142142        $cat = get_query_var('cat'); 
    143143        $p = get_query_var('p'); 
     
    200200        } 
    201201 
    202202        $prefix = ''; 
    203         if ( isset($title) ) 
     203        if ( !empty($title) ) 
    204204                $prefix = " $sep "; 
    205205 
    206206        $title = $prefix . $title;