mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 15:47:05 +00:00
Add 'who' arg to wp_dropdown_users() and get_users(). Add' hide_if_only_one_author' argument to get_users(). Query only authors (user level greater than 0) when who => author is passed. Query only authors for author meta box and quick edit dropdowns. Props scribu. fixes #15871
git-svn-id: https://develop.svn.wordpress.org/trunk@17088 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -433,6 +433,11 @@ function get_meta_sql( $meta_query, $meta_type, $primary_table, $primary_id_colu
|
||||
} else {
|
||||
$meta_compare_string = '%s';
|
||||
}
|
||||
|
||||
// @todo Temporary hack to support empty values. Do not use outside of core.
|
||||
if ( '_wp_zero_value' == $meta_value )
|
||||
$meta_value = 0;
|
||||
|
||||
$where .= $wpdb->prepare( " AND CAST($alias.meta_value AS {$meta_type}) {$meta_compare} {$meta_compare_string}", $meta_value );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user