mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-03 22:27:04 +00:00
For clarity, initialize some arrays that previously were only assigned via short circuit in loops.
See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@30982 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3889,6 +3889,8 @@ function _pad_term_counts(&$terms, $taxonomy) {
|
||||
return;
|
||||
|
||||
$term_items = array();
|
||||
$terms_by_id = array();
|
||||
$term_ids = array();
|
||||
|
||||
foreach ( (array) $terms as $key => $term ) {
|
||||
$terms_by_id[$term->term_id] = & $terms[$key];
|
||||
|
||||
Reference in New Issue
Block a user