Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/17/2014 01:02:25 AM (11 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-classes.php

    r7901 r7905  
    249249     *                             Default: false.
    250250     *     @type string $spam Spam status. Default: 'ham_only'.
     251     *     @type bool $update_meta_cache Whether to pre-fetch metadata for
     252     *           queried activity items. Default: true.
    251253     * }
    252254     * @return array The array returned has two keys:
     
    431433        }
    432434
    433         if ( !empty( $activity_ids ) ) {
     435        if ( ! empty( $activity_ids ) && $update_meta_cache ) {
    434436            bp_activity_update_meta_cache( $activity_ids );
    435437        }
Note: See TracChangeset for help on using the changeset viewer.