Taxononmy: set WP_Term_Query::terms when returning terms from the cache in WP_Term_Query::get_terms().

See #37591.


git-svn-id: https://develop.svn.wordpress.org/trunk@38212 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2016-08-07 04:47:51 +00:00
parent e5b88bcd8e
commit e914c3fb17

View File

@ -641,7 +641,8 @@ class WP_Term_Query {
$cache = array_map( 'get_term', $cache );
}
return $cache;
$this->terms = $cache;
return $this->terms;
}
if ( 'count' == $_fields ) {