Ticket #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
Change History
Changed 3 years ago by ntm
-
attachment
podpress.patch
added
comment:1 Changed 3 years ago by ntm
the function podPress_do_feed_torrent should probably be changed, too.
Changed 3 years ago by ntm
-
attachment
podpress.php
added
with the changed podPress_do_feed_torrent function

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