Opened 4 years ago
Closed 4 years ago
#962 closed defect (fixed)
bypass of the RSS Feed does not work (and a patch for this)
| Reported by: | ntm | Owned by: | seek3r |
|---|---|---|---|
| Priority: | normal | Component: | podpress |
| Severity: | normal | Keywords: | |
| Cc: |
Description
i have discovered that the bypass
add_action('do_feed_rss'
in the podpress.php : 188 does not work (with WP 2.7.x) as it should.
I'm thinking that it is necessary to remove the original action first with
remove_action('do_feed_rss', 'do_feed_rss', 10, 1);
as it works for the ATOM feed bypass.
Furthermore i'm thinking that the function podPress_do_feed_rss2 should contain a statement for the case that the WP function do_feed_rss2 exists e.g.
function podPress_do_feed_rss2($withcomments) {
podPress_addFeedHooks();
if (!function_exists('do_feed_rss2')) {
load_template(ABSPATH.'wp-rss2.php');
} else {
do_feed_rss2($withcomments);
}
}
Only with this change the RSS 1.0 bypass will work.
And if you do this then the functions podPress_do_feed_premium and podPress_do_feed_podcast should be revised, too.
The changes i'm suggesting are in the attached file.
Attachments (2)
Change History (4)
Changed 4 years ago by ntm
comment:1 Changed 4 years ago by ntm
the function podPress_do_feed_torrent should probably be changed, too.
comment:2 Changed 4 years ago by azaozz
- Resolution set to fixed
- Status changed from new to closed
Fixed in [99682]

patch for the podpress.php (differences against rev. 98699)