Changeset 8787 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 08/11/2014 03:13:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r8783 r8787 1020 1020 'search_terms' => false, // Pass search terms as a string 1021 1021 'meta_query' => false, // Filter by activity meta. See WP_Meta_Query for format 1022 'date_query' => false, // Filter by date. See first parameter of WP_Date_Query for format 1022 1023 'show_hidden' => false, // Show activity items that are hidden site-wide? 1023 1024 'exclude' => false, // Comma-separated list of activity IDs to exclude … … 1041 1042 1042 1043 // Attempt to return a cached copy of the first page of sitewide activity. 1043 if ( ( 1 === (int) $r['page'] ) && empty( $r['max'] ) && empty( $r['search_terms'] ) && empty( $r['meta_query'] ) && empty( $r[' filter'] ) && empty( $r['exclude'] ) && empty( $r['in'] ) && ( 'DESC' === $r['sort'] ) && empty( $r['exclude'] ) && ( 'ham_only' === $r['spam'] ) ) {1044 if ( ( 1 === (int) $r['page'] ) && empty( $r['max'] ) && empty( $r['search_terms'] ) && empty( $r['meta_query'] ) && empty( $r['date_query'] ) && empty( $r['filter'] ) && empty( $r['exclude'] ) && empty( $r['in'] ) && ( 'DESC' === $r['sort'] ) && empty( $r['exclude'] ) && ( 'ham_only' === $r['spam'] ) ) { 1044 1045 1045 1046 $activity = wp_cache_get( 'bp_activity_sitewide_front', 'bp' ); … … 1053 1054 'search_terms' => $r['search_terms'], 1054 1055 'meta_query' => $r['meta_query'], 1056 'date_query' => $r['date_query'], 1055 1057 'filter' => $r['filter'], 1056 1058 'display_comments' => $r['display_comments'], … … 1072 1074 'search_terms' => $r['search_terms'], 1073 1075 'meta_query' => $r['meta_query'], 1076 'date_query' => $r['date_query'], 1074 1077 'filter' => $r['filter'], 1075 1078 'display_comments' => $r['display_comments'],
Note: See TracChangeset
for help on using the changeset viewer.