diff --git a/wp-includes/class-wp-term-query.php b/wp-includes/class-wp-term-query.php index 9da5a20f32..25f8ede047 100644 --- a/wp-includes/class-wp-term-query.php +++ b/wp-includes/class-wp-term-query.php @@ -677,7 +677,7 @@ class WP_Term_Query { $cache_key = "get_terms:$key:$last_changed"; $cache = wp_cache_get( $cache_key, 'terms' ); if ( false !== $cache ) { - if ( 'all' === $_fields ) { + if ( 'all' === $_fields || 'all_with_object_id' === $_fields ) { $cache = $this->populate_terms( $cache ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9cc00b641a..cbfecb6721 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43312'; +$wp_version = '5.0-alpha-43313'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.