Opened 6 years ago

Closed 6 years ago

#3456 closed enhancement (fixed)

Add do_action('commentsrss2_item') to wp-commentsrss2.php

Reported by: seek3r Owned by: markjaquith
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)

wp-commentsrss2.php (3.7 KB) - added by seek3r 6 years ago.
wp-commentsrss2.php with requested line added
wp-commentsrss2.patch (377 bytes) - added by Viper007Bond 6 years ago.
Patch of mentioned changed

Download all attachments as: .zip

Change History (7)

seek3r6 years ago

wp-commentsrss2.php with requested line added

Patch of mentioned changed

  • Version set to 2.1
  • 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?

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.

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.

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [4635]) Add commentrss2_item action hook. Props seek3r and Viper007Bond. fixes #3456

Note: See TracTickets for help on using tickets.