Changeset 57396 for branches/5.9/src/wp-admin/update.php
- Timestamp:
- 01/30/2024 02:43:15 PM (17 months ago)
- Location:
- branches/5.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9
- Property svn:mergeinfo changed
/trunk merged: 57388-57389
- Property svn:mergeinfo changed
-
branches/5.9/src/wp-admin/update.php
r51475 r57396 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.