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

WordPress Trac noreply at wordpress.org
Tue Oct 27 17:05:44 UTC 2015


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

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


Comment:

 I just found that r34697 breaks code that uses `get_posts( array( 'paged'
 => $x ) )` since `offset` will default to `0` it will always override
 `paged`.

 This breaks, for instance, the sample code provided at
 https://vip.wordpress.com/documentation/writing-bin-scripts/#faq

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


More information about the wp-trac mailing list