WordPress.org

Make WordPress Core

Changeset 28665


Ignore:
Timestamp:
06/04/2014 06:20:59 PM (6 years ago)
Author:
wonderboymusic
Message:

Wrap individual meta query WHERE clases in parens, missed in 28659.

Props boonebgorges.
Fixes #25538.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/meta.php

    r28659 r28665  
    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
Note: See TracChangeset for help on using the changeset viewer.