[wp-trac] [WordPress Trac] #33372: WP_Query may return incorrect results when using negative values with parameter p.
WordPress Trac
noreply at wordpress.org
Wed Sep 23 17:46:55 UTC 2015
#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: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback dev-feedback | Focuses:
--------------------------------------------+------------------------------
Changes (by johnbillion):
* keywords: => reporter-feedback dev-feedback
Comment:
Bearing in mind the `wp_posts.ID` field is unsigned, what's the expected
behaviour when querying for `p => -1`? Should it cause an empty result set
to be returned?
Is the expected behaviour the same for all similar numeric fields?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33372#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list