Changeset 57410 for branches/4.5/src/wp-admin/update.php
- Timestamp:
- 01/30/2024 03:10:15 PM (10 months ago)
- Location:
- branches/4.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
- Property svn:mergeinfo changed
/trunk merged: 57388-57389
- Property svn:mergeinfo changed
-
branches/4.5/src/wp-admin/update.php
r34598 r57410 147 147 check_admin_referer('plugin-upload'); 148 148 149 if ( isset( $_FILES['pluginzip']['name'] ) && ! str_ends_with( strtolower( $_FILES['pluginzip']['name'] ), '.zip' ) ) { 150 wp_die( __( 'Only .zip archives may be uploaded.' ) ); 151 } 152 149 153 $file_upload = new File_Upload_Upgrader('pluginzip', 'package'); 150 154 … … 251 255 252 256 check_admin_referer('theme-upload'); 257 258 if ( isset( $_FILES['themezip']['name'] ) && ! str_ends_with( strtolower( $_FILES['themezip']['name'] ), '.zip' ) ) { 259 wp_die( __( 'Only .zip archives may be uploaded.' ) ); 260 } 253 261 254 262 $file_upload = new File_Upload_Upgrader('themezip', 'package');
Note: See TracChangeset
for help on using the changeset viewer.