Make WordPress Core


Ignore:
Timestamp:
07/07/2020 05:47:37 PM (4 years 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/plugin-install.php

    r48281 r48390  
    354354        <?php wp_nonce_field( 'plugin-upload' ); ?>
    355355        <label class="screen-reader-text" for="pluginzip"><?php _e( 'Plugin zip file' ); ?></label>
    356         <input type="file" id="pluginzip" name="pluginzip" />
     356        <input type="file" id="pluginzip" name="pluginzip" accept=".zip" />
    357357        <?php submit_button( __( 'Install Now' ), '', 'install-plugin-submit', false ); ?>
    358358    </form>
Note: See TracChangeset for help on using the changeset viewer.