Make WordPress Core


Ignore:
Timestamp:
04/21/2011 06:13:03 PM (13 years ago)
Author:
ryan
Message:

Allow querying empty meta values. Props scribu. fixes #15292

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r17634 r17674  
    497497        if ( 'authors' == $qv['who'] && $blog_id ) {
    498498            $qv['meta_key'] = $wpdb->get_blog_prefix( $blog_id ) . 'user_level';
    499             $qv['meta_value'] = '_wp_zero_value'; // Hack to pass '0'
     499            $qv['meta_value'] = 0;
    500500            $qv['meta_compare'] = '!=';
    501501            $qv['blog_id'] = $blog_id = 0; // Prevent extra meta query
Note: See TracChangeset for help on using the changeset viewer.