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

WordPress Trac noreply at wordpress.org
Wed Jul 29 06:25:33 UTC 2020


#9757: Allow Plugin/Theme updates from a uploaded .zip file.
-------------------------------------------------+-------------------------
 Reporter:  hakre                                |       Owner:  azaozz
     Type:  feature request                      |      Status:  reopened
 Priority:  high                                 |   Milestone:  5.5
Component:  Upgrade/Install                      |     Version:  2.8
 Severity:  normal                               |  Resolution:
 Keywords:  dev-feedback has-patch early needs-  |     Focuses:  ui, ui-
  dev-note                                       |  copy
-------------------------------------------------+-------------------------
Changes (by sabernhardt):

 * keywords:  dev-feedback has-patch early needs-dev-note commit => dev-
     feedback has-patch early needs-dev-note


Comment:

 @afragen I think you're noticing a difference between the plugin and theme
 upgrader files.

 [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes
 /class-plugin-upgrader.php?rev=48684#L139 class-plugin-upgrader.php]:
 `'clear_destination' => $parsed_args['overwrite_package'],`

 [https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes
 /class-theme-upgrader.php?rev=48684#L251 class-theme-upgrader.php]:
 `'clear_destination' => $args['overwrite_package'],`

 For testing, I'll upload a patch to edit the theme upgrader.

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


More information about the wp-trac mailing list