Make get_users arg optional. props duck_. see #14572.

git-svn-id: https://develop.svn.wordpress.org/trunk@15873 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-10-20 17:21:06 +00:00
parent 386694bb79
commit 4568da6764

View File

@ -539,10 +539,10 @@ class WP_User_Query extends WP_Object_Query {
* @uses $wpdb
* @uses WP_User_Query See for default arguments and information.
*
* @param array $args
* @param array $args Optional.
* @return array List of users.
*/
function get_users( $args ) {
function get_users( $args = array() ) {
$args = wp_parse_args( $args );
$args['count_total'] = false;