]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/taxonomy.php
WordPress 4.4.2
[autoinstalls/wordpress.git] / wp-includes / taxonomy.php
index 6c2a29ce273539ba3167dfe0579a92781a6b49e9..c6d3b6e26d32462b5df783f57c5448ef38ee497a 100644 (file)
@@ -3646,7 +3646,7 @@ function update_object_term_cache($object_ids, $object_type) {
 function update_term_cache( $terms, $taxonomy = '' ) {
        foreach ( (array) $terms as $term ) {
                // Create a copy in case the array was passed by reference.
 function update_term_cache( $terms, $taxonomy = '' ) {
        foreach ( (array) $terms as $term ) {
                // Create a copy in case the array was passed by reference.
-               $_term = $term;
+               $_term = clone $term;
 
                // Object ID should not be cached.
                unset( $_term->object_id );
 
                // Object ID should not be cached.
                unset( $_term->object_id );