Make WordPress Core


Ignore:
Timestamp:
12/20/2010 05:25:39 PM (14 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r17009 r17088  
    434434            $meta_compare_string = '%s';
    435435        }
     436
     437        // @todo Temporary hack to support empty values. Do not use outside of core.
     438        if ( '_wp_zero_value' == $meta_value )
     439            $meta_value = 0;
     440
    436441        $where .= $wpdb->prepare( " AND CAST($alias.meta_value AS {$meta_type}) {$meta_compare} {$meta_compare_string}", $meta_value );
    437442    }
Note: See TracChangeset for help on using the changeset viewer.