Changeset 57404 for branches/5.1/src/wp-admin/update.php
- Timestamp:
- 01/30/2024 02:59:13 PM (15 months ago)
- Location:
- branches/5.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.1
- Property svn:mergeinfo changed
/trunk merged: 57388-57389
- Property svn:mergeinfo changed
-
branches/5.1/src/wp-admin/update.php
r43571 r57404 146 146 147 147 check_admin_referer( 'plugin-upload' ); 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 } 148 152 149 153 $file_upload = new File_Upload_Upgrader( 'pluginzip', 'package' ); … … 263 267 264 268 check_admin_referer( 'theme-upload' ); 269 270 if ( isset( $_FILES['themezip']['name'] ) && ! str_ends_with( strtolower( $_FILES['themezip']['name'] ), '.zip' ) ) { 271 wp_die( __( 'Only .zip archives may be uploaded.' ) ); 272 } 265 273 266 274 $file_upload = new File_Upload_Upgrader( 'themezip', 'package' );
Note: See TracChangeset
for help on using the changeset viewer.