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
This commit is contained in:
Sergey Biryukov 2013-11-13 03:56:09 +00:00
parent 12d10da7e6
commit 3ce6b77afd
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;