[wp-trac] [WordPress Trac] #10410: Secondary RSS feeds use the wrong function to acquire post titles
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 4 19:51:24 UTC 2011
#10410: Secondary RSS feeds use the wrong function to acquire post titles
--------------------------+-------------------------
Reporter: kingjeffrey | Owner: ryan
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Feeds | Version: 2.8.1
Severity: minor | Resolution: worksforme
Keywords: dev-feedback |
--------------------------+-------------------------
Changes (by SergeyBiryukov):
* status: reopened => closed
* resolution: => worksforme
* milestone: Future Release =>
Comment:
Replying to [comment:10 kingjeffrey]:
> 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)
I've tested this example in 3.3-trunk and 2.8.1 (the original reported
version) and it seems to work fine. "foo bar" is only added to post titles
on the frontend, but not in any of the feeds.
Feel free to reopen with more information if there's still a problem.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10410#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list