Make WordPress Core

Changeset 28333


Ignore:
Timestamp:
05/06/2014 09:42:28 PM (11 years ago)
Author:
wonderboymusic
Message:

In WP_Query, remove duplicate variable setting:

  • In ->parse_search_order(), a value is always set for $search_orderby, no need for empty initialization
  • In ->get_posts(), $fields is always set, no need for empty initialization

See #27882.

File:
1 edited

Legend:

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

    r27836 r28333  
    20792079        global $wpdb;
    20802080
    2081         $search_orderby = '';
    2082 
    20832081        if ( $q['search_terms_count'] > 1 ) {
    20842082            $num_terms = count( $q['search_orderby_title'] );
     
    22132211        $search = '';
    22142212        $groupby = '';
    2215         $fields = '';
    22162213        $post_status_join = false;
    22172214        $page = 1;
Note: See TracChangeset for help on using the changeset viewer.