Ticket #1282 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

"All Comments" feed does not include post titles

Reported by: skippy Assigned to: skippy
Priority: normal Milestone:
Component: Template Version: 1.5.1.1
Severity: normal Keywords: bg|has-patch bg|dev-feedback
Cc:

Description

It's a pain to hover over a comment's link in my aggregator to see the permalink in order to determine to which post the comment was applied. The supplied patch includes each posts' title in the <title> element when viewing the "all comments" feed.

Attachments

wp-commentsrss2_patch.txt (367 bytes) - added by skippy on 05/21/05 06:38:24.

Change History

04/23/05 23:01:00 changed by skippy

  • Patch set to No.

04/23/05 23:07:22 changed by skippy

An arguably easier solution would be to fix the_title_rss() to accept a parameter:

function the_title_rss($title = 0) {

$title = get_the_title($title); $title = apply_filters('the_title', $title); $title = apply_filters('the_title_rss', $title); echo $title;

}

Since get_the_title() only uses the global $post object if $title is zero, this should work just fine.

05/18/05 02:47:27 changed by mdawaffe

The patch is essentially what I do (though I think you'd want an && not an - either that or rework your parentheses), but your comment above is the better solution.

05/21/05 06:38:24 changed by skippy

  • attachment wp-commentsrss2_patch.txt added.

05/21/05 16:24:23 changed by skippy

  • version changed from 1.5 to 1.5.1.1.
  • severity changed from minor to enhancement.

/wp-commentsrss2.php:

52c52
<               <title>Comment on <?php the_title_rss($comment->comment_post_ID); ?> by: <?php comment_author_rss() ?></title>
---
>               <title>by: <?php comment_author_rss() ?></title>

wp-includes/feed-functions.php:

12,13c12,13
< function the_title_rss($id = 0) {
<       $title = get_the_title($id);
---
> function the_title_rss() {
>       $title = get_the_title();

06/30/05 04:43:04 changed by markjaquith

  • keywords set to bg|has-patch bg|dev-feedback.

08/11/05 12:39:25 changed by skippy

  • owner changed from anonymous to skippy.
  • status changed from new to assigned.
  • milestone set to 1.5.2.

08/14/05 18:21:39 changed by matt

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [2781]) Fixes #1282

11/30/06 19:41:47 changed by

  • milestone deleted.

Milestone 1.5.2 deleted