Coding Standards: Use consistent spelling for "cacheable" in WP_Query::get_posts().

Follow-up to [53941], [54768].

Props SergeyBiryukov.
Merges [57012] to the 6.1 branch.
See #57012.
Built from https://develop.svn.wordpress.org/branches/6.1@54781


git-svn-id: http://core.svn.wordpress.org/branches/6.1@54333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
desrosj 2022-11-09 18:37:14 +00:00
parent 0bf82203fd
commit 31e58d80b9
2 changed files with 3 additions and 3 deletions

View File

@ -3110,13 +3110,13 @@ class WP_Query {
*/
$id_query_is_cacheable = ! str_contains( strtoupper( $orderby ), ' RAND(' );
$cachable_field_values = array(
$cacheable_field_values = array(
"{$wpdb->posts}.*",
"{$wpdb->posts}.ID, {$wpdb->posts}.post_parent",
"{$wpdb->posts}.ID",
);
if ( ! in_array( $fields, $cachable_field_values, true ) ) {
if ( ! in_array( $fields, $cacheable_field_values, true ) ) {
$id_query_is_cacheable = false;
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.1.1-alpha-54780';
$wp_version = '6.1.1-alpha-54781';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.