| @@ -609,10 +609,8 @@ | ||
| 609 | 609 | remove_filter( 'elementor/files/allow-file-type/json', [ $this, 'enable_json_template_upload' ] ); |
| 610 | 610 | remove_filter( 'elementor/files/allow_unfiltered_upload', [ $this, 'enable_json_template_upload' ] ); |
| 611 | 611 | |
| 612 | 612 | if ( is_wp_error( $upload_result ) ) { |
| 613 | - Plugin::$instance->uploads_manager->remove_file_or_dir( dirname( $upload_result['tmp_name'] ) ); | |
| 614 | - | |
| 615 | 613 | return $upload_result; |
| 616 | 614 | } |
| 617 | 615 | |
| 618 | 616 | $source = $this->get_source( $data['source'] ?? 'local' ); |