diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 5f5127ac10..1f51ff9cd2 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -3721,7 +3721,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. - $_term = $term; + $_term = clone $term; // Object ID should not be cached. unset( $_term->object_id ); diff --git a/wp-includes/version.php b/wp-includes/version.php index fca11a8c78..060c58c050 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-1452886392909'; +$wp_version = '4.5-alpha-1452886512627'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.