[wp-trac] [WordPress Trac] #25380: Allow posts_per_page option for pre_get_posts action hook on feed

WordPress Trac noreply at wordpress.org
Fri Mar 7 18:58:34 UTC 2014


#25380: Allow posts_per_page option for pre_get_posts action hook on feed
----------------------------------------+-----------------------------
 Reporter:  wokamoto                    |       Owner:  wonderboymusic
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:  3.9
Component:  Query                       |     Version:  3.6.1
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+-----------------------------

Comment (by wonderboymusic):

 In [changeset:"27456"]:
 {{{
 #!CommitTicketReference repository="" revision="27456"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25380#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list