Opened 17 years ago
Closed 17 years ago
#11117 closed enhancement (fixed)
Add hook to allow modification of SimplePie options
| Reported by: | nacin | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Feeds | Version: | 2.9 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
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.
Attachments (3)
Change History (9)
#2
in reply to: ↑ 1
@
17 years ago
Replying to scribu:
Should probably use do_action_ref_array() instead of do_action().
Good call, not sure how I missed that. Will patch up as array(&$feed, &$url).
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Should probably use do_action_ref_array() instead of do_action().