diff --git a/wp-includes/class-wp-term-query.php b/wp-includes/class-wp-term-query.php index 45d45927a0..8ff0028ecf 100644 --- a/wp-includes/class-wp-term-query.php +++ b/wp-includes/class-wp-term-query.php @@ -457,6 +457,14 @@ class WP_Term_Query { "tt.taxonomy IN ('" . implode( "', '", array_map( 'esc_sql', $taxonomies ) ) . "')"; } + if ( empty( $args['exclude'] ) ) { + $args['exclude'] = array(); + } + + if ( empty( $args['include'] ) ) { + $args['include'] = array(); + } + $exclude = $args['exclude']; $exclude_tree = $args['exclude_tree']; $include = $args['include']; diff --git a/wp-includes/version.php b/wp-includes/version.php index 75e8066c4e..ada36810f6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-beta3-53308'; +$wp_version = '6.0-beta3-53309'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.