Make WordPress Core

Changeset 32910


Ignore:
Timestamp:
06/23/2015 12:43:05 PM (11 years ago)
Author:
boonebgorges
Message:

Fix PHP notice in WP_Tax_Query::get_sql_for_clause().

Previously, the $where variable was not initialized, so that when an invalid
'operator' was passed, PHP would complain that $where was undefined.

Props dlh.
Fixes #32756.

File:
1 edited

Legend:

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

    r32874 r32910  
    10471047                );
    10481048
    1049                 $join = '';
     1049                $join = $where = '';
    10501050
    10511051                $this->clean_query( $clause );
Note: See TracChangeset for help on using the changeset viewer.