Make WordPress Core

Changeset 60176


Ignore:
Timestamp:
04/20/2025 11:49:11 PM (17 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Correct default parameter type in WP_Meta_Query::__construct().

This adjusts the default $meta_query parameter value to match the documented type of array.

Since the function is gated with a loose, falsey ! $meta_query check, there is no difference to function behavior.

Follow-up to [17699].

Props justlevine.
See #63268.

File:
1 edited

Legend:

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

    r58032 r60176  
    166166         * }
    167167         */
    168         public function __construct( $meta_query = false ) {
     168        public function __construct( $meta_query = array() ) {
    169169                if ( ! $meta_query ) {
    170170                        return;
Note: See TracChangeset for help on using the changeset viewer.