Merged in feature/280-dev-dev01 (pull request #21)
auto-patch 280-dev-dev01-2024-01-19T16_41_58 * auto-patch 280-dev-dev01-2024-01-19T16_41_58
This commit is contained in:
@@ -68,6 +68,14 @@ class WPCF7_Submission {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
public function __destruct() {
|
||||
$this->remove_uploaded_files();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The main logic of submission.
|
||||
*/
|
||||
@@ -124,8 +132,6 @@ class WPCF7_Submission {
|
||||
do_action( 'wpcf7_mail_failed', $contact_form );
|
||||
}
|
||||
}
|
||||
|
||||
$this->remove_uploaded_files();
|
||||
};
|
||||
|
||||
wpcf7_switch_locale( $this->contact_form->locale(), $callback );
|
||||
|
||||
Reference in New Issue
Block a user