#16573 closed defect (bug) (duplicate)
meta_query doesnt support "empty" values
Reported by: | dd32 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | Query | Keywords: | needs-patch |
Focuses: | Cc: |
Description
Basically, a meta_value of '0' is ignored in meta queries, It bases it on empty(), so a meta value being "empty" is ignored.
This mainly comes into play for numeric comparisons, ie. field >= 0 (do not want -50 etc)
Code: Line 423 change from empty() to strlen()?
Core includes a hack to work around this already
Change History (3)
Note: See
TracTickets for help on using
tickets.
of course it was reported 4 months ago.. #15292