[wp-trac] [WordPress Trac] #14922: Invalid Custom RSS Feed for Custom Post Type without a regular Post

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 2 21:03:48 UTC 2010


#14922: Invalid Custom RSS Feed for Custom Post Type without a regular Post
--------------------------+-------------------------------------------------
 Reporter:  actionnerd    |       Owner:                        
     Type:  defect (bug)  |      Status:  new                   
 Priority:  normal        |   Milestone:  3.1                   
Component:  Feeds         |     Version:  3.0.1                 
 Severity:  normal        |    Keywords:  has-patch dev-feedback
--------------------------+-------------------------------------------------
Changes (by aaroncampbell):

 * cc: aaroncampbell (added)
  * keywords:  => has-patch dev-feedback
  * milestone:  Awaiting Review => 3.1


Comment:

 I generated this patch based on what I had already done before finding
 this ticket.  The patch attached simply adds two filters called
 `get_lastpostdate_post_types` and `get_lastpostmodified_post_types`
 respectively.  This will fix my issue, allowing me to add the post type
 'beer' to my feed and correctly consider that post type when checking the
 freshness of the feed.

 I'm wondering if this should be modified to pass the current post type to
 the filters?  If this is the preferred fix I can upload a new patch.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14922#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list