[wp-trac] [WordPress Trac] #11117: Add hook to allow modification of SimplePie options

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 10 22:56:01 UTC 2009


#11117: Add hook to allow modification of SimplePie options
-------------------------+--------------------------------------------------
 Reporter:  nacin        |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  2.9
Component:  Feeds        |     Version:  2.9
 Severity:  normal       |    Keywords:     
-------------------------+--------------------------------------------------
 I suggest an action is added to to the function {{{fetch_feed()}}} in
 {{{wp-includes/feed.php}}}. This would allow someone to add options to a
 SimplePie fetch without unnecessarily duplicating the function.

 I also don't see a harm in allowing for different cache durations
 depending on the url. I would find that to be important context. So, I've
 also added the url as an argument to the
 {{{wp_feed_cache_transient_lifetime}}} filter.

 Patch attached.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11117>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list