[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
Tue Jan 17 22:05:53 UTC 2012


#18158: Meta Query for posts with a meta key not set (IS NULL).
-------------------------------------------------+-------------------------
 Reporter:  johnnyb                              |       Owner:
     Type:  enhancement                          |  georgestephanis
 Priority:  normal                               |      Status:  accepted
Component:  Query                                |   Milestone:  Future
 Severity:  normal                               |  Release
 Keywords:  dev-feedback needs-testing has-      |     Version:  3.2.1
  patch                                          |  Resolution:
-------------------------------------------------+-------------------------

Comment (by georgestephanis):

 Oh, I must have missed it going in then -- I just ran a clean install to
 test, and it does in fact have an index -- my mistake!

 And testing -- I think I just got confused earlier, you're completely
 correct.  The value isn't necessary.

 As I had mentioned before -- there probably is a more correct way of doing
 this with different values, and please let me know what that would be,
 this is just the simple fix that works and adds the functionality in.  :)

 Thanks for the feedback, scribu!

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18158#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list