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
This commit is contained in:
Ryan Boren 2005-03-23 21:39:22 +00:00
parent faed798153
commit e3aa5de539
1 changed files with 3 additions and 1 deletions

View File

@ -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));