mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 06:07:23 +01:00
Taxononmy: Set WP_Term_Query::terms
when returning terms from the cache in WP_Term_Query::get_terms()
.
Merge of [38211] and [38212] to the 4.6 branch. Props wonderboymusic. Props boonebgorges for review. Fixes #37591. Built from https://develop.svn.wordpress.org/branches/4.6@38214 git-svn-id: http://core.svn.wordpress.org/branches/4.6@38155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f6cbf30494
commit
c959c32860
@ -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 ) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-RC1-38210';
|
||||
$wp_version = '4.6-RC1-38214';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user