Skip to:
Content

BuddyPress.org

Changeset 10915


Ignore:
Timestamp:
06/29/2016 08:11:15 PM (8 years ago)
Author:
r-a-y
Message:

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

Props demon_ru.

(trunk)

File:
1 edited

Legend:

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

    r10740 r10915  
    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.