WordPress.org

Make WordPress Core

Changeset 6538


Ignore:
Timestamp:
01/02/08 20:45:17 (10 years ago)
Author:
ryan
Message:

Add separator location arg to wp_title. Props cpoteet. fixes #4407

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r6536 r6538  
    160160 
    161161 
    162 function wp_title($sep = '»', $display = true) { 
     162function wp_title($sep = '»', $display = true, $seplocation = '') { 
    163163    global $wpdb, $wp_locale, $wp_query; 
    164164 
     
    236236        $prefix = " $sep "; 
    237237 
    238     $title = $prefix . $title; 
     238    // Determines position of the separator 
     239    if ( 'right' == $seplocation ) 
     240        $title = $title . $prefix; 
     241    else 
     242        $title = $prefix . $title; 
     243     
    239244    $title = apply_filters('wp_title', $title, $sep); 
    240245 
     
    244249    else 
    245250        return $title; 
     251 
    246252} 
    247253 
Note: See TracChangeset for help on using the changeset viewer.