Make WordPress Core

Opened 9 years ago

Closed 7 years ago

#1570 closed defect (bug) (fixed)

Comments RSS Feed: remove limit on page/post feeds

Reported by: alexkingorg Owned by: markjaquith
Milestone: 2.1 Priority: low
Severity: normal Version:
Component: General Keywords: 2nd-opinion has-patch
Focuses: Cc:


I couldn't figure out how to upload my patch, so here it is:

< 			comment_author_url, comment_date, comment_date_gmt, comment_content, comment_post_ID, 
< 			$wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments 
> 			comment_author_url, comment_date, comment_content, comment_post_ID, 
> 			$wpdb->posts.ID, $wpdb->posts.post_password, $wpdb->posts.post_title FROM $wpdb->comments 
< 			ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') );
> 			ORDER BY comment_date";
< 			$wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments 
> 			$wpdb->posts.ID, $wpdb->posts.post_password, $wpdb->posts.post_title FROM $wpdb->comments 
< 		<title>by: <?php comment_author_rss() ?></title>
> 		<title><?php comment_author_rss() ?> on '<?php echo $comment->post_title; ?>'</title>

Attachments (1)

diff.txt (793 bytes) - added by alexkingorg 9 years ago.

Download all attachments as: .zip

Change History (9)

alexkingorg9 years ago


comment:1 alexkingorg9 years ago

Ah, you get to add the file *after* you create the ticket.

comment:2 markjaquith9 years ago

  • Keywords bg|2nd-opinion added
  • Milestone set to 1.6
  • Owner changed from anonymous to markjaquith
  • Priority changed from normal to low
  • Status changed from new to assigned
  • Summary changed from Patch to comments RSS feed, add post title to feed item title element, remove limit on page/post feeds to Comments RSS Feed: remove limit on page/post feeds
  • Version changed from 1.5.2 to

The title thing got added in 1.5.2, so I'm editing the title to only reference the limit issue.

Anyone have an opinion on the limit issue? without it, the feed could be VERY big. We've all had our 100+ comments entries. But then, it is a comment feed, so the limit is too low, someone might miss comments. How about hardcoding a high limit? Say... 40?

comment:3 dougal8 years ago

I'd suggest using the limit from options, but accepting a querystring parameter to override it. E.g.:


comment:4 matt8 years ago

  • Milestone changed from 2.0 to 2.1

Not going in 2.0.

comment:5 rgovostes8 years ago

  • Keywords has-patch added

comment:6 Nazgul8 years ago

  • Keywords 2nd-opinion added; bg|2nd-opinion removed

What are the opinions on this?
Should the comment feed also abide the posts_per_rss option?

Also Tortoise doesn't like the currently attached patch. Is it Tortoise or is it the patch?

comment:7 alexkingorg8 years ago

The comments feed is to comments display as the posts feed is to the posts display. That is, the posts and posts feed are both in reverse-chronological order. The comments and comments feed are in chronological order. The limit effectively cuts off comments at that limit. A better way to limit would be to get the number of comments and set an offset too so that the latest comments are always included.

Perhaps another (updated) patch is required now.

comment:8 matt7 years ago

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

(In [4542]) This should be an XML representation of all comments on a post, fixes #1570

Note: See TracTickets for help on using tickets.