Changeset 7918 for trunk/bp-blogs/bp-blogs-classes.php
- Timestamp:
- 02/18/2014 12:50:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-classes.php
r7699 r7918 115 115 * @param string|bool $search_terms Optional. Search by text stored in 116 116 * blogmeta (such as the blog name). Default: false. 117 * @param bool $update_meta_cache Whether to pre-fetch metadata for 118 * blogs. Default: true. 117 119 * @return array Multidimensional results array, structured as follows: 118 120 * 'blogs' - Array of located blog objects 119 121 * 'total' - A count of the total blogs matching the filter params 120 122 */ 121 public static function get( $type, $limit = false, $page = false, $user_id = 0, $search_terms = false ) {123 public static function get( $type, $limit = false, $page = false, $user_id = 0, $search_terms = false, $update_meta_cache = true ) { 122 124 global $bp, $wpdb; 123 125 … … 162 164 $paged_blogs = BP_Blogs_Blog::get_blog_extras( $paged_blogs, $blog_ids, $type ); 163 165 166 if ( $update_meta_cache ) { 167 bp_blogs_update_meta_cache( $blog_ids ); 168 } 169 164 170 return array( 'blogs' => $paged_blogs, 'total' => $total_blogs ); 165 171 }
Note: See TracChangeset
for help on using the changeset viewer.