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:
parent
f4b61df0e4
commit
6413c1efce
|
@ -849,6 +849,8 @@ class WP_Test_REST_Attachments_Controller extends WP_Test_REST_Post_Type_Control
|
||||||
if ( file_exists( $this->test_file2 ) ) {
|
if ( file_exists( $this->test_file2 ) ) {
|
||||||
unlink( $this->test_file2 );
|
unlink( $this->test_file2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->remove_added_uploads();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function check_post_data( $attachment, $data, $context = 'view', $links ) {
|
protected function check_post_data( $attachment, $data, $context = 'view', $links ) {
|
||||||
|
|
Loading…
Reference in New Issue