mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Allow querying empty meta values. Props scribu. fixes #15292
git-svn-id: https://develop.svn.wordpress.org/trunk@17674 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -496,7 +496,7 @@ class WP_User_Query {
|
||||
|
||||
if ( 'authors' == $qv['who'] && $blog_id ) {
|
||||
$qv['meta_key'] = $wpdb->get_blog_prefix( $blog_id ) . 'user_level';
|
||||
$qv['meta_value'] = '_wp_zero_value'; // Hack to pass '0'
|
||||
$qv['meta_value'] = 0;
|
||||
$qv['meta_compare'] = '!=';
|
||||
$qv['blog_id'] = $blog_id = 0; // Prevent extra meta query
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user