[wp-trac] Re: [WordPress Trac] #8878: Allow theme developers to have feed links automatically outputted

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 18 10:50:04 GMT 2009


#8878: Allow theme developers to have feed links automatically outputted
-------------------------------------+--------------------------------------
 Reporter:  Viper007Bond             |        Owner:  Viper007Bond
     Type:  enhancement              |       Status:  new         
 Priority:  normal                   |    Milestone:  2.8         
Component:  Template                 |      Version:  2.7         
 Severity:  normal                   |   Resolution:              
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------
Comment (by Viper007Bond):

 Per Matt's good suggestion:

 99% (if not more) of themes don't output the `<link>` to the feed when
 you're viewing a category, author, tag, etc. archive listing. Therefore we
 can safely automatically output those without requiring theme updates.

 Only the default general feeds will need to be manually enabled to avoid
 duplicating what is hardcoded into most themes. This new patch also makes
 just one general feed rather than both RSS2 and Atom. However the pre-
 existing `default_feed` filter can switch WordPress to using Atom by
 default rather than RSS.

 This patch also makes `feed_content_type()` output `application/octet-
 stream` rather than a blank if it doesn't know about a feed type. Thanks
 to rmccue on that one.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8878#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list