Making WordPress.org

Changeset 14254


Ignore:
Timestamp:
12/10/2024 07:28:20 AM (2 months ago)
Author:
dd32
Message:

Theme Directory: Upload: Mark the file selection as required for theme submission, and hint we only want .zip files.

See #7851.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/upload.php

    r13819 r14254  
    7575            ' . wp_nonce_field( 'wporg-themes-upload', '_wpnonce', true, false ) . '
    7676            <input type="hidden" name="action" value="upload"/>
    77             <input type="file" id="zip_file" name="zip_file" size="25"/>
     77            <input type="file" id="zip_file" name="zip_file" size="25" accept=".zip" required />
    7878            <p>
    7979                <small>' . sprintf( __( 'Maximum allowed file size: %s', 'wporg-themes' ), esc_html( size_format( wp_max_upload_size() ) ) ) . '</small>
Note: See TracChangeset for help on using the changeset viewer.