[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 Sep 13 06:59:30 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 kouratoras):

 @boonebgorges at that point, an array `array(0) {}` is being passed to
 `is_scalar()`.

 I am checking `var_dump( is_scalar(  $qv['p'] ) );`:
 * In case of HHVM, it returns `bool(true)`
 * In case of PHP 5.6,  it returns `bool(false)`

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


More information about the wp-trac mailing list