Make WordPress Core

Changeset 54777


Ignore:
Timestamp:
11/09/2022 10:25:54 AM (19 months ago)
Author:
SergeyBiryukov
Message:

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

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

See #57012.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-query.php

    r54771 r54777  
    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.