Skip to content

Commit

Permalink
In Twenty Ten, don't use the filter on wp_title in feeds.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@15261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Jun 15, 2010
1 parent 174a440 commit 0b6be7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wp-content/themes/twentyten/functions.php
Expand Up @@ -223,6 +223,10 @@ function twentyten_admin_header_style() {
* @return string The new title, ready for the <title> 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.
Expand Down

0 comments on commit 0b6be7f

Please sign in to comment.