Changeset 57388 for trunk/src/wp-admin/update.php
- Timestamp:
- 01/30/2024 02:21:47 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update.php
r55641 r57388 154 154 155 155 check_admin_referer( 'plugin-upload' ); 156 157 if ( isset( $_FILES['pluginzip']['name'] ) && ! str_ends_with( strtolower( $_FILES['pluginzip']['name'] ), '.zip' ) ) { 158 wp_die( __( 'Only .zip archives may be uploaded.' ) ); 159 } 156 160 157 161 $file_upload = new File_Upload_Upgrader( 'pluginzip', 'package' ); … … 302 306 303 307 check_admin_referer( 'theme-upload' ); 308 309 if ( isset( $_FILES['themezip']['name'] ) && ! str_ends_with( strtolower( $_FILES['themezip']['name'] ), '.zip' ) ) { 310 wp_die( __( 'Only .zip archives may be uploaded.' ) ); 311 } 304 312 305 313 $file_upload = new File_Upload_Upgrader( 'themezip', 'package' );
Note: See TracChangeset
for help on using the changeset viewer.