Remove meta_value from selected fields. Props filosofo. fixes #9177
git-svn-id: http://svn.automattic.com/wordpress/trunk@10600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
92f96f913b
commit
fbd0169493
|
@ -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