WordPress.org

Make WordPress Core

Changeset 49832


Ignore:
Timestamp:
12/18/2020 12:17:32 AM (4 months ago)
Author:
peterwilsoncc
Message:

Coding Standards: Minor fixes following [49830].

See #13509, #48968, #48556.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-query.php

    r49830 r49832  
    25252525                $where .= " AND ($where_status)";
    25262526            }
    2527 
    25282527        } elseif ( ! $this->is_singular ) {
    25292528            if ( 'any' === $post_type ) {
     
    25512550                    // Public statuses.
    25522551                    $public_statuses = get_post_stati( array( 'public' => true ) );
    2553                     $status_clauses  = [];
     2552                    $status_clauses  = array();
    25542553                    foreach ( (array) $public_statuses as $public_status ) {
    25552554                        $status_clauses[] = "{$wpdb->posts}.post_status = '$public_status'";
     
    25902589                $where .= ' AND 1=0 ';
    25912590            }
    2592 
    25932591        } else {
    25942592            $where .= $post_type_where;
Note: See TracChangeset for help on using the changeset viewer.