Opened 6 years ago
Closed 6 years ago
#3456 closed enhancement (fixed)
Add do_action('commentsrss2_item') to wp-commentsrss2.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | General | Version: | 2.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
This would allow for comment enclosures. I use this for my support of audio comments in wordpress, and then the comment feed has the enclosure and becomes its own little podcast.
So right above the closing item tag
<?php do_action('commentsrss2_item'); ?>
</item>
a 2 second fix from anyone with svn access, Im even attaching the latest version of the file with that one line added
Attachments (2)
Change History (7)
comment:1
foolswisdom — 6 years ago
- Version set to 2.1
comment:2
markjaquith — 6 years ago
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned
+1, but I'm no RSS expert... objections? Better way to implement? Redundant?
comment:3
Viper007Bond — 6 years ago
Looks fine to me. It'll allow one to add additional data for posts.
However, I think it'd be best if the ID of the post was passed via the hook so you don't have to do global and such.
comment:4
markjaquith — 6 years ago
Good call, Viper007Bond. I'm also going to pass the comment_post_ID as a 3rd param, in case someone wants to have it without having to grab the whole comment object.
comment:5
markjaquith — 6 years ago
- Resolution set to fixed
- Status changed from assigned to closed

wp-commentsrss2.php with requested line added