Make WordPress Core

Changeset 3274


Ignore:
Timestamp:
12/05/2005 11:57:41 PM (19 years ago)
Author:
ryan
Message:

Add wp_title filter.

File:
1 edited

Legend:

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

    r3202 r3274  
    196196    }
    197197
     198    $prefix = '';
     199    if ( isset($title) )
     200        $prefix = " $sep ";
     201
     202    $title = $prefix . $title;
     203    $title = apply_filters('wp_title', $title, $sep);
     204
    198205    // Send it out
    199     if ( $display && isset($title) )
    200         echo " $sep $title";
    201     elseif ( !$display && isset($title) )
    202         return " $sep $title";
     206    if ( $display )
     207        echo $title;
     208    else
     209        return $title;
    203210}
    204211
Note: See TracChangeset for help on using the changeset viewer.