diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 92ec413728..30f814fd00 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1824,6 +1824,8 @@ function get_terms( $taxonomies, $args = '' ) { if ( ! empty( $exclusions ) ) { $exclusions = ' AND t.term_id NOT IN (' . implode( ',', array_map( 'intval', $exclusions ) ) . ')'; + } else { + $exclusions = ''; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 58e64f7aef..b8305103b9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-beta1-31812'; +$wp_version = '4.2-beta1-31813'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.