[wp-trac] [WordPress Trac] #43446: `meta_compare_key` should support more operators than `LIKE` and `=`
WordPress Trac
noreply at wordpress.org
Fri Mar 9 19:16:17 UTC 2018
#43446: `meta_compare_key` should support more operators than `LIKE` and `=`
----------------------------------------+------------------------------
Reporter: boonebgorges | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: good-first-bug needs-patch | Focuses:
----------------------------------------+------------------------------
Comment (by soulseekah):
Started on this.
Implemented the following operators: `!=`, `IN`, `NOT IN`, `NOT LIKE`.
The numerical operators don't make too much sense, I think, since nobody
names meta keys with pure numbers out there... I hope :)
I've marked `EXISTS`, `NOT EXISTS` (these are pretty much `=` and `!=`
operators as is, they can probably be aliased), `RLIKE`, `REGEXP` and `NOT
REGEXP` for later, so just looking to get some eyes on what I have so far.
Special thanks to @versusbassz for working with me on this. He'll upload
the modified docblock once all operators are covered.
Cheers.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43446#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list