Changeset 12618 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php
- Timestamp:
- 06/05/2023 04:40:30 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-upload-handler.php
r12617 r12618 61 61 */ 62 62 public function process_upload() { 63 if ( UPLOAD_ERR_OK !== $_FILES['zip_file']['error'] ) { 64 return new \WP_Error( 'error_upload', __( 'Error in file upload.', 'wporg-plugins' ) ); 65 } 66 67 $zip_file = $_FILES['zip_file']['tmp_name']; 63 68 $has_upload_token = $this->has_valid_upload_token(); 64 $zip_file = $_FILES['zip_file']['tmp_name'];65 69 $this->plugin_dir = Filesystem::unzip( $zip_file ); 66 70
Note: See TracChangeset
for help on using the changeset viewer.