Ignore nopaging for feeds.

git-svn-id: https://develop.svn.wordpress.org/trunk@4618 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-12-06 23:14:37 +00:00
parent 31f086450e
commit c6ff4d8f99
1 changed files with 1 additions and 0 deletions

View File

@ -609,6 +609,7 @@ class WP_Query {
}
if ( $this->is_feed ) {
$q['posts_per_page'] = get_option('posts_per_rss');
$q['nopaging'] = false;
}
$q['posts_per_page'] = (int) $q['posts_per_page'];
if ( $q['posts_per_page'] < -1 )