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 137 137 138 138 139 139 function wp_title($sep = '»', $display = true) { 140 global $wpdb, $ month;140 global $wpdb, $posts, $month; 141 141 142 142 $cat = get_query_var('cat'); 143 143 $p = get_query_var('p'); … … 200 200 } 201 201 202 202 $prefix = ''; 203 if ( isset($title) )203 if ( !empty($title) ) 204 204 $prefix = " $sep "; 205 205 206 206 $title = $prefix . $title;
