mirror of
git://develop.git.wordpress.org/
synced 2025-02-22 15:42:29 +01:00
Coding Standards: Use consistent spelling for "cacheable" in WP_Query::get_posts()
.
Follow-up to [53941], [54768]. See #57012. git-svn-id: https://develop.svn.wordpress.org/trunk@54777 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
74fb46b54d
commit
3d5454875b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user