_s: Retrieve blog name with the correct context.

Passing `'display'` as the second argument will make the blog name filterable and runs it through `wp_texturize()`.

See https://core.trac.wordpress.org/ticket/26811
This commit is contained in:
Konstantin Obenland 2014-01-24 09:54:05 -08:00
parent 96727271a0
commit 09720890a7
1 changed files with 3 additions and 3 deletions

View File

@ -43,14 +43,14 @@ add_filter( 'body_class', '_s_body_classes' );
* @return string The filtered title.
*/
function _s_wp_title( $title, $sep ) {
global $page, $paged;
if ( is_feed() ) {
return $title;
}
global $page, $paged;
// Add the blog name
$title .= get_bloginfo( 'name' );
$title .= get_bloginfo( 'name', 'display' );
// Add the blog description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );