Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/17/2014 01:02:25 AM (8 years ago)
Author:
boonebgorges
Message:

Introduce 'update_meta_cache' param to bp_has_activities() stack

See #5398

File:
1 edited

Legend:

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

    r7885 r7905  
    911911        'in'               => false,        // Comma-separated list or array of activity IDs to which you want to limit the query
    912912        'spam'             => 'ham_only',   // 'ham_only' (default), 'spam_only' or 'all'.
     913        'update_meta_cache' => true,
    913914
    914915        /**
     
    940941                'display_comments' => $display_comments,
    941942                'show_hidden'      => $show_hidden,
    942                 'spam'             => $spam
     943                'spam'             => $spam,
     944                'update_meta_cache' => $update_meta_cache,
    943945            );
    944946            $activity = BP_Activity_Activity::get( $args );
     
    981983 *     except for the following:
    982984 *     @type string|int|array Single activity ID, comma-separated list of IDs,
    983  *                            or array of IDs.
     985 *           or array of IDs.
    984986 * }
    985987 * @return array $activity See BP_Activity_Activity::get() for description.
     
    995997        'sort'             => 'DESC',      // sort ASC or DESC
    996998        'spam'             => 'ham_only',  // Retrieve items marked as spam
     999        'update_meta_cache' => true,
    9971000    );
    9981001    $r = wp_parse_args( $args, $defaults );
     
    10071010        'show_hidden'      => $show_hidden,
    10081011        'in'               => $activity_ids,
    1009         'spam'             => $spam
     1012        'spam'             => $spam,
     1013        'update_meta_cache' => $update_meta_cache,
    10101014    );
    10111015    return apply_filters( 'bp_activity_get_specific', BP_Activity_Activity::get( $get_args ), $args, $get_args );
Note: See TracChangeset for help on using the changeset viewer.