[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 18:48:05 UTC 2009
#10410: Secondary RSS feeds use the wrong function to acquire post titles
--------------------------+-------------------------------------------------
Reporter: kingjeffrey | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Query | Version: 2.8.1
Severity: normal | Keywords: dev-feedback
--------------------------+-------------------------------------------------
Comment(by kingjeffrey):
Here is a specific example:
`
function append_foo_bar($theTitle) {
return $theTitle." foo bar";
}
if(!is_feed()) {
add_filter('the_title', 'append_foo_bar');
}
`
This will append " foo bar" to the title of a post, but not to the title
for the main RSS feed. But if you go to the permalink for the post and
click on the RSS icon in the location bar, you will see that " foo bar"
_is_ appended to the title of the post in the comments feed, and on any
category feeds.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10410#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list