From e3aa5de5392d2e7d671144141e50a2e6bb139668 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 23 Mar 2005 21:39:22 +0000 Subject: [PATCH] Feeds should always show x posts, not x days. http://mosquito.wordpress.org/view.php?id=1159 git-svn-id: https://develop.svn.wordpress.org/trunk@2475 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index d6ab7fe6be..f5a81af2b0 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -249,8 +249,10 @@ class WP_Query { $q['nopaging'] = false; } } - if ( $this->is_feed ) + if ( $this->is_feed ) { $q['posts_per_page'] = get_settings('posts_per_rss'); + $q['what_to_show'] = 'posts'; + } $add_hours = intval(get_settings('gmt_offset')); $add_minutes = intval(60 * (get_settings('gmt_offset') - $add_hours));