From e1ff5dca6b725058fc13a134a8f73c5de40e510a 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 --- functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions.php b/functions.php index d678aa731..7c7c238ec 100644 --- a/functions.php +++ b/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' );