Changeset 57402 for branches/5.3/src/wp-admin/update.php
- Timestamp:
- 01/30/2024 02:54:50 PM (12 months ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
- Property svn:mergeinfo changed
/trunk merged: 57388-57389
- Property svn:mergeinfo changed
-
branches/5.3/src/wp-admin/update.php
r45932 r57402 147 147 148 148 check_admin_referer( 'plugin-upload' ); 149 150 if ( isset( $_FILES['pluginzip']['name'] ) && ! str_ends_with( strtolower( $_FILES['pluginzip']['name'] ), '.zip' ) ) { 151 wp_die( __( 'Only .zip archives may be uploaded.' ) ); 152 } 149 153 150 154 $file_upload = new File_Upload_Upgrader( 'pluginzip', 'package' ); … … 266 270 267 271 check_admin_referer( 'theme-upload' ); 272 273 if ( isset( $_FILES['themezip']['name'] ) && ! str_ends_with( strtolower( $_FILES['themezip']['name'] ), '.zip' ) ) { 274 wp_die( __( 'Only .zip archives may be uploaded.' ) ); 275 } 268 276 269 277 $file_upload = new File_Upload_Upgrader( 'themezip', 'package' );
Note: See TracChangeset
for help on using the changeset viewer.