From 80a592d5483e61f5d1463c2c663a3978e20da875 Mon Sep 17 00:00:00 2001 From: lancewillett 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: http://core.svn.wordpress.org/trunk@21327 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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' );