Changeset 41190 for trunk/src/wp-includes/class-wp-comment-query.php
- Timestamp:
- 07/30/2017 02:55:17 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-comment-query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-comment-query.php
r41162 r41190 376 376 } 377 377 378 // $args can include anything. Only use the args defined in the query_var_defaults to compute the key. 379 $key = md5( serialize( wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) ) ) ); 378 /* 379 * Only use the args defined in the query_var_defaults to compute the key, 380 * but ignore 'fields', which does not affect query results. 381 */ 382 $_args = wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) ); 383 unset( $_args['fields'] ); 384 385 $key = md5( serialize( $_args ) ); 380 386 $last_changed = wp_cache_get_last_changed( 'comment' ); 381 382 387 383 388 $cache_key = "get_comments:$key:$last_changed";
Note: See TracChangeset
for help on using the changeset viewer.