From 66e02d639e6c9146ec8036e3fef1ecaea3c56c83 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 28 Oct 2014 22:02:59 +0000 Subject: [PATCH] Remove call to `wp_get_last_changed()` from unit tests. This function was removed in [30073]. See #21760. git-svn-id: https://develop.svn.wordpress.org/trunk@30080 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/term/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/term/cache.php b/tests/phpunit/tests/term/cache.php index 0c7f1b5e04..b6962ce192 100644 --- a/tests/phpunit/tests/term/cache.php +++ b/tests/phpunit/tests/term/cache.php @@ -188,7 +188,7 @@ class Tests_Term_Cache extends WP_UnitTestCase { $term_id = $this->factory->term->create( array( 'slug' => $slug, 'name' => $name, 'taxonomy' => $taxonomy ) ); - $last_changed = wp_get_last_changed( 'terms' ); + $last_changed = wp_cache_get( 'last_changed', 'terms' ); $group = $taxonomy . ':' . $last_changed; $term = get_term_by( 'slug', $slug, $taxonomy );