From 1960ee59a519c24ce84277891f9863f4d7935531 Mon Sep 17 00:00:00 2001 From: Muhibul Haque Date: Wed, 4 Nov 2026 12:55:07 +0600 Subject: [PATCH] Tests: Use unregister_post_type() in Tests_User_MapMetaCap. See #65893. Props devmuhib009. --- tests/phpunit/tests/user/mapMetaCap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/user/mapMetaCap.php b/tests/phpunit/tests/user/mapMetaCap.php index b969a5d8f4f58..d4275166a7ee4 100644 --- a/tests/phpunit/tests/user/mapMetaCap.php +++ b/tests/phpunit/tests/user/mapMetaCap.php @@ -36,7 +36,7 @@ public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { public static function wpTearDownAfterClass() { $GLOBALS['super_admins'] = self::$super_admins; - unset( $GLOBALS['wp_post_types'][ self::$post_type ] ); + unregister_post_type( self::$post_type ); } /**