Remove meta_value from selected fields. Props filosofo. fixes #9177
git-svn-id: https://develop.svn.wordpress.org/trunk@10600 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
023dca55ec
commit
843229bc36
@ -2210,9 +2210,6 @@ class WP_Query {
|
|||||||
$distinct = apply_filters('posts_distinct', $distinct);
|
$distinct = apply_filters('posts_distinct', $distinct);
|
||||||
$limits = apply_filters( 'post_limits', $limits );
|
$limits = apply_filters( 'post_limits', $limits );
|
||||||
|
|
||||||
if ( ! empty($q['meta_key']) )
|
|
||||||
$fields = "$fields, $wpdb->postmeta.meta_value";
|
|
||||||
|
|
||||||
$fields = apply_filters('posts_fields', $fields);
|
$fields = apply_filters('posts_fields', $fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user