diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index b46416bc16..87d8e0f202 100644 --- a/wp-includes/taxonomy.php +++ b/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. * diff --git a/wp-includes/version.php b/wp-includes/version.php index a78afff068..7d96afa684 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-alpha-44324'; +$wp_version = '5.1-alpha-44325'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.