Make get_meta_sql() a standalone function. See #15032

git-svn-id: https://develop.svn.wordpress.org/trunk@16266 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
scribu
2010-11-09 23:22:13 +00:00
parent 1394e2ff9d
commit c0be4fafcf
4 changed files with 94 additions and 95 deletions

View File

@@ -2147,7 +2147,7 @@ class WP_Query extends WP_Object_Query {
}
if ( !empty( $q['meta_query'] ) ) {
$clauses = $this->get_meta_sql( $q['meta_query'], 'post', $wpdb->posts, 'ID' );
$clauses = get_meta_sql( $q['meta_query'], 'post', $wpdb->posts, 'ID' );
$join .= $clauses['join'];
$where .= $clauses['where'];
}