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

WordPress Trac noreply at wordpress.org
Sun Sep 11 01:46:04 UTC 2016


#33372: WP_Query may return incorrect results when using negative values with
parameter p.
--------------------------------------+---------------------------
 Reporter:  giantrobot                |       Owner:  boonebgorges
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  4.7
Component:  Query                     |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------------

Comment (by boonebgorges):

 @kouratoras Thanks for the patch. But I'm wary of just dropping it in for
 what seems, at a glance, to be incorrect behavior on HHVM's part. Are you
 able to do more debugging into why `is_scalar()` is returning true in
 these instances? Can you examine exactly what's being passed into
 `is_scalar()` at this point? There are a lot of references being thrown
 around in WP_Query, and I wonder if HHVM might be choking on one of them.

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


More information about the wp-trac mailing list