Skip to:
Content

BuddyPress.org

Changeset 10914


Ignore:
Timestamp:
06/29/2016 08:10:02 PM (9 years ago)
Author:
r-a-y
Message:

XProfile: Use wp_parse_id_list() in BP_XProfile_ProfileData::get_value_byid()

Props demon_ru.

(2.6-branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/bp-xprofile/classes/class-bp-xprofile-profiledata.php

    r10740 r10914  
    440440
    441441        $is_single = false;
    442         if ( ! is_array( $user_ids ) ) {
    443             $user_ids  = array( $user_ids );
     442        $user_ids  = wp_parse_id_list( $user_ids );
     443
     444        if ( 1 === count( $user_ids ) ) {
    444445            $is_single = true;
    445446        }
Note: See TracChangeset for help on using the changeset viewer.