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

git-svn-id: http://svn.automattic.com/wordpress/trunk@15873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-10-20 17:21:06 +00:00
parent 6130324d14
commit 080d1b0969

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;