WordPress.org

Make WordPress Core

Changeset 26122


Ignore:
Timestamp:
11/13/13 03:55:33 (22 months ago)
Author:
SergeyBiryukov
Message:

Use a simple replacement for 'wp_title' filter in capital_P_dangit(), like we do for 'the_title'.

props nacin.
fixes #25796.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r26094 r26122  
    33403340function capital_P_dangit( $text ) { 
    33413341    // Simple replacement for titles 
    3342     if ( 'the_title' === current_filter() ) 
     3342    $current_filter = current_filter(); 
     3343    if ( 'the_title' === $current_filter || 'wp_title' === $current_filter ) 
    33433344        return str_replace( 'Wordpress', 'WordPress', $text ); 
    33443345    // Still here? Use the more judicious replacement 
Note: See TracChangeset for help on using the changeset viewer.