diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index b46416bc16..87d8e0f202 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -840,6 +840,9 @@ function get_term( $term, $taxonomy = '', $output = OBJECT, $filter = 'raw' ) { return null; } + // Ensure for filters that this is not empty. + $taxonomy = $_term->taxonomy; + /** * Filters a taxonomy term object. *