From 613b28cc81c6e23bd9141c0c9eba11a9ea25b0b1 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 7 Mar 2014 19:35:55 +0000 Subject: [PATCH] Remove a cache-busting hack from `Tests_Term_getTerms::test_get_terms_exclude_tree()`. It is no longer necessary after #14485 and #25711. See [27300]. Props SergeyBiryukov. Fixes #27313. git-svn-id: https://develop.svn.wordpress.org/trunk@27459 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/term/getTerms.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/phpunit/tests/term/getTerms.php b/tests/phpunit/tests/term/getTerms.php index 82af1a7983..72007b05fb 100644 --- a/tests/phpunit/tests/term/getTerms.php +++ b/tests/phpunit/tests/term/getTerms.php @@ -165,9 +165,6 @@ class Tests_Term_getTerms extends WP_UnitTestCase { $term_id2 = $this->factory->category->create(); $term_id22 = $this->factory->category->create( array( 'parent' => $term_id2 ) ); - // There's something else broken in the cache cleaning routines that leads to this having to be done manually - delete_option( 'category_children' ); - $terms = get_terms( 'category', array( 'exclude' => $term_id_uncategorized, 'fields' => 'ids',