[wp-trac] [WordPress Trac] #10410: Secondary RSS feeds use the wrong function to acquire post titles
WordPress Trac
wp-trac at lists.automattic.com
Sat Jul 18 21:36:50 UTC 2009
#10410: Secondary RSS feeds use the wrong function to acquire post titles
--------------------------+-------------------------------------------------
Reporter: kingjeffrey | Owner: ryan
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Query | Version: 2.8.1
Severity: normal | Resolution:
Keywords: dev-feedback |
--------------------------+-------------------------------------------------
Changes (by kingjeffrey):
* status: closed => reopened
* resolution: invalid =>
Comment:
Perhaps this is a better example:
function append_foo_bar($theTitle) {
if(!is_feed()) {
return $theTitle." foo bar";
} else {
return $theTitle;
}
}
add_filter('the_title', 'append_foo_bar');
is_feed() correctly identifies the main RSS feed. But does not identify
the secondary RSS feeds (comments and category feeds)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10410#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list