From eded964f7533fef362c972256febe7f54ab8a567 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 15 Jun 2010 12:27:07 +0000 Subject: [PATCH] In Twenty Ten, don't use the filter on wp_title in feeds. git-svn-id: https://develop.svn.wordpress.org/trunk@15261 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-content/themes/twentyten/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index 83cae40878..3a61e9d881 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -223,6 +223,10 @@ endif; * @return string The new title, ready for the tag. */ function twentyten_filter_wp_title( $title, $separator ) { + // Don't affect wp_title() calls in feeds. + if ( is_feed() ) + return $title; + // The $paged global variable contains the page number of a listing of posts. // The $page global variable contains the page number of a single post that is paged. // We'll display whichever one applies, if we're not looking at the first page.