diff --git src/wp-includes/class-wp-meta-query.php src/wp-includes/class-wp-meta-query.php
index fbe49f3..e1fd812 100644
|
|
class WP_Meta_Query { |
548 | 548 | $meta_type = $this->get_cast_for_type( $_meta_type ); |
549 | 549 | $clause['cast'] = $meta_type; |
550 | 550 | |
551 | | // Fallback for clause keys is the table alias. |
552 | | if ( ! $clause_key ) { |
| 551 | // Fallback for clause keys is the table alias. Key must be a string. |
| 552 | if ( is_int( $clause_key ) || ! $clause_key ) { |
553 | 553 | $clause_key = $clause['alias']; |
554 | 554 | } |
555 | 555 | |
diff --git src/wp-includes/query.php src/wp-includes/query.php
index b08d2df..f0bfdf5 100644
|
|
class WP_Query { |
2271 | 2271 | $allowed_keys = array_merge( $allowed_keys, array_keys( $meta_clauses ) ); |
2272 | 2272 | } |
2273 | 2273 | |
2274 | | if ( ! in_array( $orderby, $allowed_keys ) ) { |
| 2274 | if ( ! in_array( $orderby, $allowed_keys, true ) ) { |
2275 | 2275 | return false; |
2276 | 2276 | } |
2277 | 2277 | |