Ticket #15018: 15018.patch
File 15018.patch, 1.6 KB (added by , 14 years ago) |
---|
-
wp-includes/class.wp-object-query.php
157 157 unset( $meta_compare_string ); 158 158 } 159 159 160 return apply_filters( 'get_meta_sql', compact( 'join', 'where' ), $meta_query, $primary_table, $primary_id_column, $meta_table, $meta_id_column);160 return compact( 'join', 'where' ); 161 161 } 162 162 163 163 /* -
wp-includes/query.php
2147 2147 2148 2148 if ( !empty( $q['meta_query'] ) ) { 2149 2149 $clauses = $this->get_meta_sql( $q['meta_query'], $wpdb->posts, 'ID', $wpdb->postmeta, 'post_id' ); 2150 $clauses = apply_filters_ref_array('posts_meta_sql', array($clauses, &$this, $q['meta_query'], $wpdb->posts, 'ID', $wpdb->postmeta, 'post_id' ) ); 2150 2151 $join .= $clauses['join']; 2151 2152 $where .= $clauses['where']; 2152 2153 } -
wp-includes/user.php
469 469 470 470 if ( !empty( $qv['meta_query'] ) ) { 471 471 $clauses = $this->get_meta_sql( $qv['meta_query'], $wpdb->users, 'ID', $wpdb->usermeta, 'user_id' ); 472 $clauses = apply_filters_ref_array('posts_meta_sql', array($clauses, &$this, $qv['meta_query'], $wpdb->users, 'ID', $wpdb->usermeta, 'user_id' ) ); 472 473 $this->query_from .= $clauses['join']; 473 474 $this->query_where .= $clauses['where']; 474 475 }