Opened 19 years ago
Closed 17 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: | 1.5.1.2 |
Component: | General | Keywords: | 2nd-opinion has-patch |
Focuses: | Cc: |
Description
I couldn't figure out how to upload my patch, so here it is:
33,34c33,34 < 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 38c38 < ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') ); --- > ORDER BY comment_date"; 42c42 < $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments --- > $wpdb->posts.ID, $wpdb->posts.post_password, $wpdb->posts.post_title FROM $wpdb->comments 52c52 < <title>by: <?php comment_author_rss() ?></title> --- > <title><?php comment_author_rss() ?> on '<?php echo $comment->post_title; ?>'</title>
Attachments (1)
Change History (9)
#2
@
19 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 1.5.1.2
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?
#3
@
18 years ago
I'd suggest using the limit from options, but accepting a querystring parameter to override it. E.g.:
#6
@
18 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?
#7
@
18 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.
patch