| @@ -122,9 +122,9 @@ | ||
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | if ( isset( $tmp_path ) ) { |
| 125 | 125 | // Remove the temporary file, now that we're done with it. |
| 126 | - Plugin::$instance->uploads_manager->remove_temp_file_or_dir( $file ); | |
| 126 | + Plugin::$instance->uploads_manager->remove_file_or_dir( $file ); | |
| 127 | 127 | } |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | /** |