WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/07/2020 05:47:37 PM (13 months ago)
Author:
azaozz
Message:

Upgrade/install: Allow plugin and theme updates from a uploaded .zip file.

Props mariovalney, cyberhobo, imath, shaunandrews, mariovalney, earnjam, desrosj, dd32, folletto, swissspidy, melchoyce, pento, joshuawold, psykro, clorith, ahortin, galbaras, pingram3541, joyously, doobeedoo, karmatosed, poena, whyisjake, earnjam, sergeybiryukov, audrasjb, azaozz.

Fixes #9757.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/theme-install.php

    r45583 r48390  
    184184    <?php wp_nonce_field( 'theme-upload' ); ?>
    185185    <label class="screen-reader-text" for="themezip"><?php _e( 'Theme zip file' ); ?></label>
    186     <input type="file" id="themezip" name="themezip" />
     186    <input type="file" id="themezip" name="themezip" accept=".zip"/>
    187187    <?php submit_button( __( 'Install Now' ), '', 'install-theme-submit', false ); ?>
    188188</form>
Note: See TracChangeset for help on using the changeset viewer.