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. Built from https://develop.svn.wordpress.org/trunk@28333 git-svn-id: http://core.svn.wordpress.org/trunk@28161 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1aed1f1108
commit
5bc59586da
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue