WordPress.org

Make WordPress Core

Changeset 21394


Ignore:
Timestamp:
08/01/12 16:45:12 (21 months ago)
Author:
lancewillett
Message:

Twenty Twelve: better comment block for twentytwelve_wp_title() and set passed arguments to empty strings for compatibility with plugins or child themes that might override wp_title() before this filter runs.

See #21264.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/functions.php

    r21391 r21394  
    139139 * 
    140140 * @since Twenty Twelve 1.0 
    141  */ 
    142 function twentytwelve_wp_title( $title, $sep ) { 
     141 * 
     142 * @param string $title Default title text for current view. 
     143 * @param string $sep Optional separator. 
     144 * @return string Filtered title. 
     145 */ 
     146function twentytwelve_wp_title( $title = '', $sep = '' ) { 
    143147    global $paged, $page; 
    144148 
Note: See TracChangeset for help on using the changeset viewer.