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

WordPress Trac noreply at wordpress.org
Thu Aug 24 05:10:44 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 dd32):

 As @pento said above, I'll review any attempts made here - but with the
 caveat that I can't do so until the last week of September at the
 earliest.
 If this were a super-simple thing to add, I'd have added it a long time
 ago, unfortunately there are a lot of edge-cases that are not immediately
 obvious - IIRC it's not merely 'connector' code required, but something a
 lot deeper.

 The update code also differs significantly from the install code - Install
 handles various archive structures and is far more forgiving than the
 update handler.
 For example, currently updates require the ZIP file structure match
 *exactly* what W.org produces - however most non-W.org ZIP files do not
 match in every respect, and causes problems for 3rd-party updates
 occasionally (until they get the structure "right"). The installer code
 handles the various archive structures a lot better, but still gets
 complaints sometimes (for example, ending up with a directory of `wp-
 content/plugins/plugin-name.0.1.2.3.tmp/` under certain circumstances)

 IMHO: Any change here will need to touch on the main update handlers to
 avoid code duplication, and the changes there will need deep testing, as
 there's no current unit testing, integration testing, or any other kind of
 testing in place there for any install/update actions.

 (Some of the comments from 4+ years here will be completely irrelevant to
 any effort too, take them with a grain of salt, but verify any limitations
 mentioned)

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


More information about the wp-trac mailing list