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.


git-svn-id: https://develop.svn.wordpress.org/trunk@28333 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2014-05-06 21:42:28 +00:00
parent 16a58e34a2
commit 098a5145c5
1 changed files with 0 additions and 3 deletions

View File

@ -2078,8 +2078,6 @@ class WP_Query {
protected function parse_search_order( &$q ) {
global $wpdb;
$search_orderby = '';
if ( $q['search_terms_count'] > 1 ) {
$num_terms = count( $q['search_orderby_title'] );
$search_orderby_s = like_escape( esc_sql( $q['s'] ) );
@ -2212,7 +2210,6 @@ class WP_Query {
$join = '';
$search = '';
$groupby = '';
$fields = '';
$post_status_join = false;
$page = 1;