[wp-trac] [WordPress Trac] #34060: WP_Query zero offset parameter doesn't override paged
WordPress Trac
noreply at wordpress.org
Tue Oct 27 17:07:37 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:
--------------------------+---------------------------
Comment (by westonruter):
A workaround is to explicitly pass a non-numeric `offset`, for example:
{{{#!php
<?php
$posts = get_posts( array(
'paged' => $x,
'offset' => null,
) );
}}}
But this is not ideal.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34060#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list