plugin updates

This commit is contained in:
Tony Volpe
2024-02-21 16:19:46 +00:00
parent c72f206574
commit 21d4c85c00
1214 changed files with 102269 additions and 179257 deletions

View File

@@ -154,6 +154,10 @@ if ( isset( $_GET['action'] ) ) {
check_admin_referer( 'plugin-upload' );
if ( isset( $_FILES['pluginzip']['name'] ) && ! str_ends_with( strtolower( $_FILES['pluginzip']['name'] ), '.zip' ) ) {
wp_die( __( 'Only .zip archives may be uploaded.' ) );
}
$file_upload = new File_Upload_Upgrader( 'pluginzip', 'package' );
// Used in the HTML title tag.
@@ -302,6 +306,10 @@ if ( isset( $_GET['action'] ) ) {
check_admin_referer( 'theme-upload' );
if ( isset( $_FILES['themezip']['name'] ) && ! str_ends_with( strtolower( $_FILES['themezip']['name'] ), '.zip' ) ) {
wp_die( __( 'Only .zip archives may be uploaded.' ) );
}
$file_upload = new File_Upload_Upgrader( 'themezip', 'package' );
// Used in the HTML title tag.