Twenty Twelve: remove duplicate RSS feed title from wp_title output, props SergeyBiryukov. Closes #21233.

git-svn-id: http://core.svn.wordpress.org/trunk@21327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
lancewillett 2012-07-25 16:51:23 +00:00
parent d7ba9b6944
commit 80a592d548
1 changed files with 3 additions and 0 deletions

View File

@ -141,6 +141,9 @@ add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' );
function twentytwelve_wp_title( $title, $sep ) {
global $paged, $page;
if ( is_feed() )
return $title;
// Add the blog name.
$title .= get_bloginfo( 'name' );