[wp-trac] [WordPress Trac] #9757: Allow Plugin/Theme updates from a uploaded .zip file.

WordPress Trac noreply at wordpress.org
Mon Sep 11 07:53:49 UTC 2017


#9757: Allow Plugin/Theme updates from a uploaded .zip file.
--------------------------------------------------+------------------
 Reporter:  hakre                                 |       Owner:
     Type:  feature request                       |      Status:  new
 Priority:  low                                   |   Milestone:  4.9
Component:  Upgrade/Install                       |     Version:  2.8
 Severity:  normal                                |  Resolution:
 Keywords:  dev-feedback has-patch needs-refresh  |     Focuses:
--------------------------------------------------+------------------

Comment (by psykro):

 Thanks @Clorith

 If we uploaded the file asynchronously, using the same javascript library
 as the media library (which uses plupload as far as I know) this would
 give us the ability to perform the API check on the plugin slug.

 So to update my proposal above, on clicking 'Install Now'

 1. Upload plugin zip asynchronously to a temporary location in the uploads
 directory, showing am 'upload' progress meter
 1. Once uploaded, unzip the plugin to use the plugin slug (folder name) to
 make a WP Rest API call to check if a plugin with either a full or partial
 slug match exists
 1. Display the 'This plugin you are attempting to install seems to exist'
 message to the user
 1. Display the matching plugin details (name, description and version
 number)
 1. Move the Install Now button under the 'confirmation' message and change
 it to 'Accept and install'
 1. On clicking the Accept and install button the plugin is installed

 Things to consider remains the same.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/9757#comment:78>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list