mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
Coding Standards: Minor fixes following [49830].
See #13509, #48968, #48556. Built from https://develop.svn.wordpress.org/trunk@49832 git-svn-id: http://core.svn.wordpress.org/trunk@49551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fa7e570e2a
commit
08acf6606a
@ -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;
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.7-alpha-49831';
|
||||
$wp_version = '5.7-alpha-49832';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user