On second thought, allow posts_per_rss to be set in pre_get_posts to override the posts_per_rss option. There are backwards compatibility concerns otherwise.

Props nacin.
Partially reverts [27455]. Updates the unit test. See #25380.



git-svn-id: https://develop.svn.wordpress.org/trunk@27456 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2014-03-07 18:58:33 +00:00
parent 65932f71fd
commit dfc11a170b
2 changed files with 9 additions and 7 deletions

View File

@@ -102,6 +102,6 @@ class Tests_Query extends WP_UnitTestCase {
}
function filter_posts_per_page( &$query ) {
$query->set( 'posts_per_page', 30 );
$query->set( 'posts_per_rss', 30 );
}
}