Make WordPress Core


Ignore:
Timestamp:
07/02/2019 11:41:16 PM (5 years ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-includes.

See #47632.

File:
1 edited

Legend:

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

    r45377 r45590  
    732732        if ( ! empty( $query ) ) {
    733733            $this->init();
    734             $this->query = $this->query_vars = wp_parse_args( $query );
     734            $this->query      = wp_parse_args( $query );
     735            $this->query_vars = $this->query;
    735736        } elseif ( ! isset( $this->query ) ) {
    736737            $this->query = $this->query_vars;
     
    11411142        // Category stuff
    11421143        if ( ! empty( $q['cat'] ) && ! $this->is_singular ) {
    1143             $cat_in = $cat_not_in = array();
     1144            $cat_in     = array();
     1145            $cat_not_in = array();
    11441146
    11451147            $cat_array = preg_split( '/[,\s]+/', urldecode( $q['cat'] ) );
     
    20352037                if ( is_object( $reqpage_obj ) && 'attachment' == $reqpage_obj->post_type ) {
    20362038                    $this->is_attachment = true;
    2037                     $post_type           = $q['post_type'] = 'attachment';
     2039                    $post_type           = 'attachment';
     2040                    $q['post_type']      = 'attachment';
    20382041                    $this->is_page       = true;
    20392042                    $q['attachment_id']  = $reqpage;
     
    28892892        }
    28902893
    2891         $this->request = $old_request = "SELECT $found_rows $distinct $fields FROM {$wpdb->posts} $join WHERE 1=1 $where $groupby $orderby $limits";
     2894        $old_request   = "SELECT $found_rows $distinct $fields FROM {$wpdb->posts} $join WHERE 1=1 $where $groupby $orderby $limits";
     2895        $this->request = $old_request;
    28922896
    28932897        if ( ! $q['suppress_filters'] ) {
     
    34013405    public function query( $query ) {
    34023406        $this->init();
    3403         $this->query = $this->query_vars = wp_parse_args( $query );
     3407        $this->query      = wp_parse_args( $query );
     3408        $this->query_vars = $this->query;
    34043409        return $this->get_posts();
    34053410    }
Note: See TracChangeset for help on using the changeset viewer.