Ticket #1282 (closed enhancement: fixed)

Opened 7 years ago

Last modified 5 years ago

"All Comments" feed does not include post titles

Reported by: skippy Owned by: 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 Download (367 bytes) - added by skippy 7 years ago.

Change History

  • Patch set to No

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.

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.

skippy7 years ago

  • 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();
  • Keywords bg|has-patch bg|dev-feedback added
  • Owner changed from anonymous to skippy
  • Status changed from new to assigned
  • Milestone set to 1.5.2

comment:7   matt6 years ago

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

(In [2781]) Fixes #1282

  • Milestone 1.5.2 deleted

Milestone 1.5.2 deleted

Note: See TracTickets for help on using tickets.