Skip to:
Content

BuddyPress.org

Changeset 5920


Ignore:
Timestamp:
03/15/2012 10:57:42 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Implode results of wp_parse_id_list() in BP_Activity_Activity::get(); (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-classes.php

    r5916 r5920  
    138138        // Exclude specified items
    139139        if ( !empty( $exclude ) ) {
    140             $exclude = wp_parse_id_list( $exclude );
     140            $exclude = implode( ',', wp_parse_id_list( $exclude ) );
    141141            $where_conditions['exclude'] = "a.id NOT IN ({$exclude})";
    142142        }
     
    144144        // The specific ids to which you want to limit the query
    145145        if ( !empty( $in ) ) {
    146             $in = wp_parse_id_list( $in );
     146            $in = implode( ',', wp_parse_id_list( $in ) );
    147147            $where_conditions['in'] = "a.id IN ({$in})";
    148148        }
Note: See TracChangeset for help on using the changeset viewer.