Skip to content

Commit

Permalink
Coding Standards: Minor fixes following [49830].
Browse files Browse the repository at this point in the history
See #13509, #48968, #48556.


git-svn-id: https://develop.svn.wordpress.org/trunk@49832 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
peterwilsoncc committed Dec 18, 2020
1 parent 5fa4c98 commit 1930427
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/wp-includes/class-wp-query.php
Expand Up @@ -2524,7 +2524,6 @@ public function get_posts() {
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 ) );
Expand All @@ -2550,7 +2549,7 @@ public function get_posts() {

// 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'";
}
Expand Down Expand Up @@ -2589,7 +2588,6 @@ public function get_posts() {
} else {
$where .= ' AND 1=0 ';
}

} else {
$where .= $post_type_where;
}
Expand Down

0 comments on commit 1930427

Please sign in to comment.