Changeset 15543 for trunk/wp-includes/user.php
- Timestamp:
- 08/27/2010 03:41:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/user.php
r15539 r15543 334 334 335 335 /** 336 * {@internal Missing Description}}336 * List of found user ids 337 337 * 338 338 * @since 3.1.0 … … 343 343 344 344 /** 345 * T he total number ofusers for the current query345 * Total number of found users for the current query 346 346 * 347 347 * @since 3.1.0 … … 351 351 var $total_users = 0; 352 352 353 // SQL pieces 353 354 var $query_from; 354 355 var $query_where; … … 357 358 358 359 /** 359 * Sets up the object properties. 360 * PHP4 constructor 361 */ 362 function WP_User_Query( $query = null ) { 363 $this->__construct( $query ); 364 } 365 366 /** 367 * PHP5 constructor 360 368 * 361 369 * @since 3.1.0 … … 364 372 * @return WP_User_Query 365 373 */ 366 function WP_User_Query( $query ) { 367 $this->query_vars = wp_parse_args( $query, array( 368 'search' => '', 'role' => '', 369 'offset' => '', 'number' => '', 'count_total' => true, 370 'orderby' => 'login', 'order' => 'ASC', 371 'meta_key' => '', 'meta_value' => '', 372 'include' => array(), 'exclude' => array(), 373 'fields' => 'all' 374 ) ); 375 376 $this->prepare_query(); 377 $this->query(); 374 function __construct( $query = null ) { 375 if ( !empty( $query ) ) { 376 $this->query_vars = wp_parse_args( $query, array( 377 'search' => '', 'role' => '', 378 'offset' => '', 'number' => '', 'count_total' => true, 379 'orderby' => 'login', 'order' => 'ASC', 380 'meta_key' => '', 'meta_value' => '', 381 'include' => array(), 'exclude' => array(), 382 'fields' => 'all' 383 ) ); 384 385 $this->prepare_query(); 386 $this->query(); 387 } 378 388 } 379 389
Note: See TracChangeset
for help on using the changeset viewer.