mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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
This commit is contained in:
@@ -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 = '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user