From 98ae9ab13228eb5c4bc1a378815beeb8ffc51498 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 9 Oct 2022 16:28:30 +0000 Subject: [PATCH] Tests: Clean up test images in `WP_Customize_Manager` tests. The test for `WP_Customizer_Manager::import_theme_starter_content()` creates two attachments that remain in the `uploads` directory after the test run is complete. This commit follows the approach from `WP_REST_Posts_Controller` tests and utilizes an `$attachments_created` property to track any files uploaded in the current test run and clean them up afterwards. This makes sure there are no leftover images after the test class is run. Follow-up to [39276], [39346], [39411], [40142], [53935], [54424]. See #55652. Built from https://develop.svn.wordpress.org/trunk@54425 git-svn-id: http://core.svn.wordpress.org/trunk@53984 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index ec6afcc67f..1236ec370f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-beta3-54424'; +$wp_version = '6.1-beta3-54425'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.