Ticket #49284: class-wp-meta-query.diff
File class-wp-meta-query.diff, 828 bytes (added by , 5 years ago) |
---|
-
src/wp-includes/class-wp-meta-query.php
620 620 $this->table_aliases[] = $subquery_alias; 621 621 622 622 $meta_compare_string_start = 'NOT EXISTS ('; 623 $meta_compare_string_start .= "SELECT 1 FROM $ wpdb->postmeta$subquery_alias ";624 $meta_compare_string_start .= "WHERE $subquery_alias. post_ID = $alias.post_ID";623 $meta_compare_string_start .= "SELECT 1 FROM $this->meta_table $subquery_alias "; 624 $meta_compare_string_start .= "WHERE $subquery_alias.$this->meta_id_column = $alias.$this->meta_id_column "; 625 625 $meta_compare_string_end = 'LIMIT 1'; 626 626 $meta_compare_string_end .= ')'; 627 627 }