Ticket #25380: 25380.diff
File 25380.diff, 592 bytes (added by , 11 years ago) |
---|
-
wp-includes/query.php
2264 2264 } 2265 2265 } 2266 2266 if ( $this->is_feed ) { 2267 $q['posts_per_page'] = get_option('posts_per_rss'); 2267 // This overrides posts_per_page. 2268 if ( ! empty( $q['posts_per_rss'] ) ) { 2269 $q['posts_per_page'] = $q['posts_per_rss']; 2270 } else { 2271 $q['posts_per_page'] = get_option('posts_per_rss'); 2272 } 2268 2273 $q['nopaging'] = false; 2269 2274 } 2270 2275 $q['posts_per_page'] = (int) $q['posts_per_page'];