Make WordPress Core


Ignore:
Timestamp:
03/07/2014 06:58:33 PM (11 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query.php

    r27455 r27456  
    103103
    104104    function filter_posts_per_page( &$query ) {
    105         $query->set( 'posts_per_page', 30 );
     105        $query->set( 'posts_per_rss', 30 );
    106106    }
    107107}
Note: See TracChangeset for help on using the changeset viewer.