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

WordPress Trac noreply at wordpress.org
Sat Aug 20 02:31:32 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:
--------------------------------------+---------------------------
Changes (by boonebgorges):

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


Comment:

 In [changeset:"38288"]:
 {{{
 #!CommitTicketReference repository="" revision="38288"
 Query: Non-scalar and negative values for 'p' should always result in a
 404.

 Previously, the 'p' query var was being run through `absint()`, which
 caused unexpected results.

 Props Akeif, kouratoras.
 Fixes #33372.
 }}}

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


More information about the wp-trac mailing list