Coding Standards: Minor fixes following [49830].

See #13509, #48968, #48556.


git-svn-id: https://develop.svn.wordpress.org/trunk@49832 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Wilson
2020-12-18 00:17:32 +00:00
parent 5fa4c984fd
commit 1930427d30

View File

@@ -2524,7 +2524,6 @@ class WP_Query {
if ( ! empty( $where_status ) ) {
$where .= " AND ($where_status)";
}
} elseif ( ! $this->is_singular ) {
if ( 'any' === $post_type ) {
$queried_post_types = get_post_types( array( 'exclude_from_search' => false ) );
@@ -2550,7 +2549,7 @@ class WP_Query {
// Public statuses.
$public_statuses = get_post_stati( array( 'public' => true ) );
$status_clauses = [];
$status_clauses = array();
foreach ( (array) $public_statuses as $public_status ) {
$status_clauses[] = "{$wpdb->posts}.post_status = '$public_status'";
}
@@ -2589,7 +2588,6 @@ class WP_Query {
} else {
$where .= ' AND 1=0 ';
}
} else {
$where .= $post_type_where;
}