Changeset 54781
- Timestamp:
- 11/09/2022 06:35:58 PM (2 years ago)
- Location:
- branches/6.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.1
-
branches/6.1/src/wp-includes/class-wp-query.php
r54780 r54781 3111 3111 $id_query_is_cacheable = ! str_contains( strtoupper( $orderby ), ' RAND(' ); 3112 3112 3113 $cach able_field_values = array(3113 $cacheable_field_values = array( 3114 3114 "{$wpdb->posts}.*", 3115 3115 "{$wpdb->posts}.ID, {$wpdb->posts}.post_parent", … … 3117 3117 ); 3118 3118 3119 if ( ! in_array( $fields, $cach able_field_values, true ) ) {3119 if ( ! in_array( $fields, $cacheable_field_values, true ) ) { 3120 3120 $id_query_is_cacheable = false; 3121 3121 }
Note: See TracChangeset
for help on using the changeset viewer.