Make WordPress Core

Changeset 54781


Ignore:
Timestamp:
11/09/2022 06:35:58 PM (2 years ago)
Author:
desrosj
Message:

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.

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  
    31113111        $id_query_is_cacheable = ! str_contains( strtoupper( $orderby ), ' RAND(' );
    31123112
    3113         $cachable_field_values = array(
     3113        $cacheable_field_values = array(
    31143114            "{$wpdb->posts}.*",
    31153115            "{$wpdb->posts}.ID, {$wpdb->posts}.post_parent",
     
    31173117        );
    31183118
    3119         if ( ! in_array( $fields, $cachable_field_values, true ) ) {
     3119        if ( ! in_array( $fields, $cacheable_field_values, true ) ) {
    31203120            $id_query_is_cacheable = false;
    31213121        }
Note: See TracChangeset for help on using the changeset viewer.