WordPress.org

Make WordPress Core

Ticket #16579: 16579-3.5.patch

File 16579-3.5.patch, 468 bytes (added by georgestephanis, 22 months ago)

Refreshing patch to apply cleanly.

  • wp-includes/query.php

     
    22632263                        } 
    22642264                } 
    22652265 
    2266                 if ( !empty( $this->tax_query->queries ) || !empty( $this->meta_query->queries ) ) { 
     2266                if ( ! empty( $this->tax_query->queries ) || ! empty( $this->meta_query->queries ) || ! empty( $q['meta_query'] ) ) { 
    22672267                        $groupby = "{$wpdb->posts}.ID"; 
    22682268                } 
    22692269