From 31bded083b892eff7661a637c0c3763d0184fe07 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Wed, 18 Mar 2015 18:22:20 +0000 Subject: [PATCH] Ensure that the `$exclusions` parameter of 'list_terms_exclusions' filter is always a string. Props fhwebcs. Fixes #31681. git-svn-id: https://develop.svn.wordpress.org/trunk@31813 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 92ec413728..30f814fd00 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/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 = ''; } /**