From 3ce6b77afdf1a6324b06d23ca405417227aedc37 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 13 Nov 2013 03:56:09 +0000 Subject: [PATCH] Use a simple replacement for 'wp_title' filter in capital_P_dangit(), like we do for 'the_title'. props nacin. fixes #25796. Built from https://develop.svn.wordpress.org/trunk@26122 git-svn-id: http://core.svn.wordpress.org/trunk@26034 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index eaa12de7f6..c120b61334 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -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;