[wp-trac] [WordPress Trac] #9757: Allow Plugin/Theme updates from a uploaded .zip file.
WordPress Trac
noreply at wordpress.org
Thu Aug 31 18:37:33 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):
@Clorith thanks for the feedback, noted regarding uploading older
versions.
My question around the actual upgrade process was more along the lines of
'WordPress has already determined (by means to still be discussed) that
this plugin can be upgraded'.
So once the something like 'can_plugin_be_updated()' returns true, does
the physical action of upgrading the plugin need to be more complicated
than something like
* rename current plugin directory
* upload and unzip new plugin
* delete renamed plugin directory
I'm still going to follow @pento's suggestions of diving deep into the
code and taking screenshots, but I'm just clarifying some initial
questions/suggestions that pop into my head.
In my mind the checks for upgrading a plugin should be a combination of
the plugin slug and Plugin header meta info for example
* Plugin name
* Version
* Text Domain
However I realise that the only field that a plugin actually requires is
the Plugin Name
My initial feeling is that if the plugin directory name and Plugin Name
meta match, consider the plugin to be upgraded. If the plugin has a valid
Version field, check against that, if not warn the user of a possible
'downgrade'.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/9757#comment:67>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list