[wp-trac] [WordPress Trac] #51677: Limit param not consistent between object query classes.

WordPress Trac noreply at wordpress.org
Tue Nov 3 21:27:26 UTC 2020


#51677: Limit param not consistent between object query classes.
--------------------------+----------------------
 Reporter:  keraweb       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:  wontfix
 Keywords:                |     Focuses:
--------------------------+----------------------

Comment (by markparnell):

 @keraweb unfortunately it could. Right now `WP_Term_Query` runs `absint()`
 over the passed value, so `-1` becomes `1`. If anyone is (incorrectly)
 passing a negative value right now, changing it to return all results for
 `-1` would alter the results they get.

 You can see more detail on the discussion we had around this issue in the
 [https://wordpress.slack.com/archives/core/p1604381824369500 Slack
 archive]

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


More information about the wp-trac mailing list