From e6ff51abfbbc3ec2fbac483e7d96febfcabdef39 Mon Sep 17 00:00:00 2001 From: Muhibul Haque Date: Wed, 4 Nov 2026 12:52:43 +0600 Subject: [PATCH] Tests: Clean up custom post status in Tests_Canonical. See #65893. Props devmuhib009. --- tests/phpunit/tests/canonical.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/tests/canonical.php b/tests/phpunit/tests/canonical.php index 06379361887c2..ebe5a8f1b4f77 100644 --- a/tests/phpunit/tests/canonical.php +++ b/tests/phpunit/tests/canonical.php @@ -47,6 +47,7 @@ public function set_up() { */ public function tear_down() { unregister_post_type( 'wp_tests_private' ); + _unregister_post_status( 'custom' ); parent::tear_down(); }