Changeset 54777 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 11/09/2022 10:25:54 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r54771 r54777 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.