mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 02:49:04 +01:00
Feeds should always show x posts, not x days. http://mosquito.wordpress.org/view.php?id=1159
git-svn-id: http://svn.automattic.com/wordpress/trunk@2475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9697579316
commit
4e1fa082fd
@ -249,8 +249,10 @@ class WP_Query {
|
|||||||
$q['nopaging'] = false;
|
$q['nopaging'] = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( $this->is_feed )
|
if ( $this->is_feed ) {
|
||||||
$q['posts_per_page'] = get_settings('posts_per_rss');
|
$q['posts_per_page'] = get_settings('posts_per_rss');
|
||||||
|
$q['what_to_show'] = 'posts';
|
||||||
|
}
|
||||||
|
|
||||||
$add_hours = intval(get_settings('gmt_offset'));
|
$add_hours = intval(get_settings('gmt_offset'));
|
||||||
$add_minutes = intval(60 * (get_settings('gmt_offset') - $add_hours));
|
$add_minutes = intval(60 * (get_settings('gmt_offset') - $add_hours));
|
||||||
|
Loading…
Reference in New Issue
Block a user