From 843229bc36a1b2cdf169d2459a94a444540d1d27 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 19 Feb 2009 19:19:20 +0000 Subject: [PATCH] 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 --- wp-includes/query.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 37a3dd72d0..bcbb3b89e3 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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); }