[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
Fri Jun 29 19:59:34 UTC 2012
#18158: Meta Query for posts with a meta key not set (IS NULL).
-----------------------------------------------+---------------------------
Reporter: johnnyb | Owner:
Type: enhancement | georgestephanis
Priority: normal | Status: closed
Component: Query | Milestone: 3.5
Severity: normal | Version: 3.2.1
Keywords: has-patch needs-unit-tests commit | Resolution: fixed
-----------------------------------------------+---------------------------
Changes (by nacin):
* status: accepted => closed
* resolution: => fixed
Comment:
In [21185]:
{{{
#!CommitTicketReference repository="" revision="21185"
Add NOT EXISTS to meta queries, allowing you to query for the non-
existence of a meta key.
You could already use EXISTS by omitting a value to check.
props georgestephanis, scribu
fixes #18158
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18158#comment:43>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list