[wp-trac] [WordPress Trac] #34060: WP_Query zero offset parameter doesn't override paged

WordPress Trac noreply at wordpress.org
Wed Oct 28 18:17:29 UTC 2015


#34060: WP_Query zero offset parameter doesn't override paged
------------------------------+---------------------------
 Reporter:  mazurstas         |       Owner:  boonebgorges
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.4
Component:  Query             |     Version:  4.3.1
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"35417"]:
 {{{
 #!CommitTicketReference repository="" revision="35417"
 Don't specify an `offset` default in `get_posts()`.

 The default value should be a null offset. A `0` default overrides any
 value
 of `paged` passed to `get_posts()`. See [34697].

 Fixes #34060.
 }}}

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


More information about the wp-trac mailing list