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/class-wp-upgrader-skin.php

    r47060 r48390  
    206206     */
    207207    public function bulk_footer() {}
     208
     209    /**
     210     * Hides the `process_failed` error message when updating by uploading a zip file.
     211     *
     212     * @since 5.5.0
     213     *
     214     * @param $wp_error WP_Error
     215     * @return bool
     216     */
     217    public function hide_process_failed( $wp_error ) {
     218        return false;
     219    }
    208220}
Note: See TracChangeset for help on using the changeset viewer.