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

WordPress Trac noreply at wordpress.org
Sat Jul 4 20:45:38 UTC 2020

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

Comment (by azaozz):

 > I see ui-copy as a keyword

 Yeah, this refers to the text that's shown on the screen, including error
 messages, action links, etc. Still may need some tweaks to make it as best
 as possible.

 > Why is the version comparison row highlighted in red?

 It's only when downgrading, to add emphasis/draw attention.

 Thinking more about it, installing or updating a plugin or theme from a
 zip is pretty much the same as uploading them through FTP, i.e. the site
 owner is in full control and can upload anything they want.

 However when done through WP it can look at `Requires at least` and
 `Requires PHP` and give more feedback to the user before they decide to go
 ahead. Perhaps it should check whether the current install (WP version and
 PHP version) is compatible with the uploaded plugin/theme, and if not,
 prevent updating? This is already the case when updating from the wp.org

 To implement this it just needs to look for `Requires at least` and
 `Requires PHP` in the uploaded plugin/theme readme.txt (if not present in
 the plugin's main file), and do a `version_compare()`  when one or both of
 these are known. Then show an error and prevent updating if requirements
 are not met.

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

More information about the wp-trac mailing list