diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index eaa12de7f6..c120b61334 100644 --- a/src/wp-includes/formatting.php +++ b/src/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;