[wp-trac] [WordPress Trac] #18158: Meta Query for posts with a meta key not set (IS NULL).
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 15 14:52:28 UTC 2012
#18158: Meta Query for posts with a meta key not set (IS NULL).
-------------------------------------+------------------------------
Reporter: johnnyb | Owner: georgestephanis
Type: enhancement | Status: accepted
Priority: normal | Milestone: 3.4
Component: Query | Version: 3.2.1
Severity: normal | Resolution:
Keywords: needs-testing has-patch |
-------------------------------------+------------------------------
Comment (by georgestephanis):
Quite frankly, `EXISTS` and `NOT EXISTS` is a much more straightforward
and simpler to understand way of phrasing what we're trying to achieve.
It's simple, descriptive, and will do the job. I'm fully in favor of
EXISTS and NOT EXISTS. If you want to include other options as well, go
ahead, but I'd recommend including these two at a minimum.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18158#comment:31>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list