mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
REST API: Delete temporary files during teardown of WP_Test_REST_Attachments_Controller.
Props jnylen0. Fixes #38574. git-svn-id: https://develop.svn.wordpress.org/trunk@39041 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -849,6 +849,8 @@ class WP_Test_REST_Attachments_Controller extends WP_Test_REST_Post_Type_Control
|
||||
if ( file_exists( $this->test_file2 ) ) {
|
||||
unlink( $this->test_file2 );
|
||||
}
|
||||
|
||||
$this->remove_added_uploads();
|
||||
}
|
||||
|
||||
protected function check_post_data( $attachment, $data, $context = 'view', $links ) {
|
||||
|
||||
Reference in New Issue
Block a user