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:
Ryan Boren 2009-02-19 19:19:20 +00:00
parent 023dca55ec
commit 843229bc36

View File

@ -2210,9 +2210,6 @@ class WP_Query {
$distinct = apply_filters('posts_distinct', $distinct);
$limits = apply_filters( 'post_limits', $limits );
if ( ! empty($q['meta_key']) )
$fields = "$fields, $wpdb->postmeta.meta_value";
$fields = apply_filters('posts_fields', $fields);
}