Ticket #4407: separator-location.diff
File separator-location.diff, 902 bytes (added by , 17 years ago) |
---|
-
C:/WAMP/www/wpsvn/wp-includes/general-template.php
159 159 } 160 160 161 161 162 function wp_title($sep = '»', $display = true ) {162 function wp_title($sep = '»', $display = true, $seplocation = '') { 163 163 global $wpdb, $wp_locale, $wp_query; 164 164 165 165 $cat = get_query_var('cat'); … … 237 237 if ( !empty($title) ) 238 238 $prefix = " $sep "; 239 239 240 $title = $prefix . $title; 240 // Determines position of the separator 241 if ( $seplocation == "right" ) { 242 $title = $title . $prefix; 243 } 244 else { 245 $title = $prefix . $title; 246 } 247 241 248 $title = apply_filters('wp_title', $title, $sep); 242 249 243 250 // Send it out … … 245 252 echo $title; 246 253 else 247 254 return $title; 255 248 256 } 249 257 250 258