Skip to:
Content

BuddyPress.org

Changeset 7680


Ignore:
Timestamp:
12/16/2013 11:35:19 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Allow activity stream $where_conditions to be filtered in get() method.

File:
1 edited

Legend:

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

    r7575 r7680  
    352352        // comments in the stream like normal comments or threaded below
    353353        // the activity.
    354         if ( false === $display_comments || 'threaded' === $display_comments )
     354        if ( false === $display_comments || 'threaded' === $display_comments ) {
    355355            $where_conditions[] = "a.type != 'activity_comment'";
    356 
     356        }
     357
     358        // Filter the where conditions
     359        $where_conditions = apply_filters( 'bp_activity_get_where_conditions', $where_conditions, $r, $select_sql, $from_sql, $join_sql );
     360
     361        // Join the where conditions together
    357362        $where_sql = 'WHERE ' . join( ' AND ', $where_conditions );
    358363
Note: See TracChangeset for help on using the changeset viewer.