[wp-trac] [WordPress Trac] #33372: WP_Query may return incorrect results when using negative values with parameter p.

WordPress Trac noreply at wordpress.org
Tue Aug 2 14:08:03 UTC 2016


#33372: WP_Query may return incorrect results when using negative values with
parameter p.
-------------------------------------------------+-------------------------
 Reporter:  giantrobot                           |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Query                                |  Release
 Severity:  normal                               |     Version:
 Keywords:  good-first-bug has-patch has-unit-   |  Resolution:
  tests                                          |     Focuses:
-------------------------------------------------+-------------------------
Changes (by kouratoras):

 * keywords:  good-first-bug needs-patch needs-unit-tests => good-first-bug
     has-patch has-unit-tests


Comment:

 @boonebgorges I am adding a patch that addresses both issues.
 I am also setting `p=1` in case of object, as `intval()` should not be
 used in this case directly.

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


More information about the wp-trac mailing list