Skip to content

Commit d0460ea

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@60176 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 26f0403 commit d0460ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/class-wp-meta-query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class WP_Meta_Query {
165165
* }
166166
* }
167167
*/
168-
public function __construct( $meta_query = false ) {
168+
public function __construct( $meta_query = array() ) {
169169
if ( ! $meta_query ) {
170170
return;
171171
}

0 commit comments

Comments
 (0)