WordPress.org

Make WordPress Core

Ticket #25538: 25538.parens.patch

File 25538.parens.patch, 484 bytes (added by boonebgorges, 6 years ago)
  • src/wp-includes/meta.php

    diff --git src/wp-includes/meta.php src/wp-includes/meta.php
    index cb83e46..965b863 100644
    class WP_Meta_Query { 
    10681068                        $where = ' AND (' . implode( "\n{$this->relation} ", $where ) . ' )';
    10691069
    10701070                if ( ! empty( $where_meta_key ) ) {
    1071                         $where .= "\nAND " . implode( "\nAND ", $where_meta_key );
     1071                        $where .= "\nAND (" . implode( "\nAND ", $where_meta_key ) . ' )';
    10721072                }
    10731073
    10741074                $join = implode( "\n", $join );