Changeset 57400 for branches/5.5/src/wp-admin/update.php
- Timestamp:
- 01/30/2024 02:51:40 PM (10 months ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
- Property svn:mergeinfo changed
/trunk merged: 57388-57389
- Property svn:mergeinfo changed
-
branches/5.5/src/wp-admin/update.php
r48417 r57400 151 151 152 152 check_admin_referer( 'plugin-upload' ); 153 154 if ( isset( $_FILES['pluginzip']['name'] ) && ! str_ends_with( strtolower( $_FILES['pluginzip']['name'] ), '.zip' ) ) { 155 wp_die( __( 'Only .zip archives may be uploaded.' ) ); 156 } 153 157 154 158 $file_upload = new File_Upload_Upgrader( 'pluginzip', 'package' ); … … 293 297 294 298 check_admin_referer( 'theme-upload' ); 299 300 if ( isset( $_FILES['themezip']['name'] ) && ! str_ends_with( strtolower( $_FILES['themezip']['name'] ), '.zip' ) ) { 301 wp_die( __( 'Only .zip archives may be uploaded.' ) ); 302 } 295 303 296 304 $file_upload = new File_Upload_Upgrader( 'themezip', 'package' );
Note: See TracChangeset
for help on using the changeset viewer.