forked from mirror/_s
_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:
parent
96727271a0
commit
09720890a7
|
@ -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' );
|
||||
|
|
Reference in New Issue