From 8b2b91941a52ca92c6569e5d05dbb6803e7667b5 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Wed, 25 Jul 2012 16:51:23 +0000 Subject: [PATCH] Twenty Twelve: remove duplicate RSS feed title from wp_title output, props SergeyBiryukov. Closes #21233. git-svn-id: https://develop.svn.wordpress.org/trunk@21327 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentytwelve/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index d678aa7316..7c7c238ec7 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -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' );