Changeset 34268 for trunk/src/wp-includes/class-wp-comment-query.php
- Timestamp:
- 09/17/2015 07:29:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r34212 r34268 95 95 * @since 4.2.0 96 96 * @since 4.4.0 `$parent__in` and `$parent__not_in` were added. 97 * @since 4.4.0 Order by `comment__in` was added. 97 * @since 4.4.0 Order by `comment__in` was added. `$update_comment_meta_cache` was added. 98 98 * @access public 99 99 * … … 162 162 * @type array $type__not_in Exclude comments from a given array of comment types. Default empty. 163 163 * @type int $user_id Include comments for a specific user ID. Default empty. 164 * @type bool $update_comment_meta_cache Whether to prime the metadata cache for found comments. 165 * Default true. 164 166 * } 165 167 */ … … 202 204 'meta_query' => '', 203 205 'date_query' => null, // See WP_Date_Query 206 'update_comment_meta_cache' => true, 204 207 ); 205 208 … … 699 702 wp_cache_add( $cache_key, $comments, 'comment' ); 700 703 if ( '*' === $fields ) { 701 update_comment_cache( $comments );704 update_comment_cache( $comments, $this->query_vars['update_comment_meta_cache'] ); 702 705 } 703 706
Note: See TracChangeset
for help on using the changeset viewer.