Changeset 10920
- Timestamp:
- 06/29/2016 09:21:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/bp-xprofile/classes/class-bp-xprofile-profiledata.php
r10914 r10920 439 439 } 440 440 441 $ is_single= false;442 $user_ids = wp_parse_id_list( $user_ids );443 444 if ( 1 === count( $user_ids ) ) {445 $is_single = true; 446 }441 $return_single_result = false; 442 if ( ! is_array( $user_ids ) ) { 443 $return_single_result = true; 444 } 445 446 $user_ids = wp_parse_id_list( $user_ids ); 447 447 448 448 // Assemble uncached IDs. … … 496 496 497 497 // If a single ID was passed, just return the value. 498 if ( $ is_single) {498 if ( $return_single_result ) { 499 499 return $data[0]->value; 500 500
Note: See TracChangeset
for help on using the changeset viewer.