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

WordPress Trac noreply at wordpress.org
Fri May 15 15:29:28 UTC 2020


#9757: Allow Plugin/Theme updates from a uploaded .zip file.
-------------------------------------------------+-------------------------
 Reporter:  hakre                                |       Owner:  (none)
     Type:  feature request                      |      Status:  assigned
 Priority:  high                                 |   Milestone:  Future
                                                 |  Release
Component:  Upgrade/Install                      |     Version:  2.8
 Severity:  normal                               |  Resolution:
 Keywords:  dev-feedback has-patch early needs-  |     Focuses:
  screenshots                                    |
-------------------------------------------------+-------------------------

Comment (by mariovalney):

 Replying to [comment:116 azaozz]:
 > Right, but instead of "failed" it may be better to ask if the user wants
 to update imho. Then it would go: Installing... The plugin is already
 installed, do you want to update it? Then the compare table.

 The "folder_exists" and "process_failed" feedback are printed on general
 upgrader.
 It's a lot of changes to achieve that.

 I guess it's not a problem an error followed by an retry, so what about
 changing the UI we can control on specific case (Plugin Install Skin)?

 > Wondering if it should have some sort of warning when "reverting" to an
 earlier version? Also, it's pretty rare, but there may be plugins with
 matching names (where one is in the plugins dir and the other is not).
 Perhaps trying to match more of the plugin meta/headers may be good?

 I was thinking about "overriding" instead "upgrading/downgrading".
 It's very plausible after a "folder exists" error... But I agree we should
 go with the general case (upgrade/downgrade)...

 So I improved the feedbacks and the UI.

 Now we have a diff alert for all fields:

 [[Image(https://i.imgur.com/F9At0Ox.png)]]

 Except for Version, like upgrade is the secure case:

 [[Image(https://i.imgur.com/95qSMLF.png)]]

 But we alert about downgrade:

 [[Image(https://i.imgur.com/ZcJFk82.png)]]

 And a text about reuploading (same value for the 5 main fields):

 [[Image(https://i.imgur.com/KmHIv64.png)]]

 And thanks for the coomments on PR. Already solved :)

 @folletto, I've changed the "Overwrite with uploaded" label to match the
 changing.


 And for finish, with this changes we're able to show a better feedback on
 ovewritting UI:

 [[Image(https://i.imgur.com/qrb6WU5.png)]]

 [[Image(https://i.imgur.com/UNYCnLJ.png)]]

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


More information about the wp-trac mailing list