Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 11 months ago

#3456 closed enhancement (fixed)

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

Reported by: seek3r's profile seek3r Owned by: markjaquith's profile markjaquith
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.1
Component: General Keywords:
Focuses: 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 18 years ago.
wp-commentsrss2.php with requested line added
wp-commentsrss2.patch (377 bytes) - added by Viper007Bond 18 years ago.
Patch of mentioned changed

Download all attachments as: .zip

Change History (7)

@seek3r
18 years ago

wp-commentsrss2.php with requested line added

@Viper007Bond
18 years ago

Patch of mentioned changed

#1 @foolswisdom
18 years ago

  • Version set to 2.1

#2 @markjaquith
18 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?

#3 @Viper007Bond
18 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.

#4 @markjaquith
18 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.

#5 @markjaquith
18 years ago

  • 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.