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

props nacin.
fixes #25796.

git-svn-id: https://develop.svn.wordpress.org/trunk@26122 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-11-13 03:55:33 +00:00
parent a6f9656497
commit 4f0bb96602
1 changed files with 2 additions and 1 deletions

View File

@ -3339,7 +3339,8 @@ function wp_basename( $path, $suffix = '' ) {
*/
function capital_P_dangit( $text ) {
// Simple replacement for titles
if ( 'the_title' === current_filter() )
$current_filter = current_filter();
if ( 'the_title' === $current_filter || 'wp_title' === $current_filter )
return str_replace( 'Wordpress', 'WordPress', $text );
// Still here? Use the more judicious replacement
static $dblq = false;