[wp-trac] [WordPress Trac] #38084: Fix Inconsistency Theme and Plugin Update Process When No Package Found
WordPress Trac
noreply at wordpress.org
Sun Sep 18 04:15:21 UTC 2016
#38084: Fix Inconsistency Theme and Plugin Update Process When No Package Found
--------------------------------+-----------------------------
Reporter: turtlepod | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upgrade/Install | Version: 4.6.1
Severity: normal | Keywords:
Focuses: ui, administration |
--------------------------------+-----------------------------
This patch is to solve inconsistency when update package is not available
for theme and plugin.
"Updata package not available" happen when there's an update data, but the
package (ZIP URL) data is not available in that data.
This is the notice that update is available but package/zip url to update
not available (this is the correct way):
Plugin Screen ( wp-admin/plugins.php ):
https://dl.dropboxusercontent.com/u/32880842/etc6/plugin-update-package-
na.png
Theme Modal in Theme Screen ( wp-admin/themes.php?theme={theme-name} ) :
https://dl.dropboxusercontent.com/u/32880842/etc6/theme-update-package-na-
modal.png
However, WP still show update action link in:
1) Theme Screen ( themes.php ):
https://dl.dropboxusercontent.com/u/32880842/etc6/theme-update-package-na-
link.png
Which result to this if user click it:
https://dl.dropboxusercontent.com/u/32880842/etc6/theme-update-package-na-
error.png
2) Update Screen ( wp-admin/update-core.php ):
Still show the update checkboxes
https://dl.dropboxusercontent.com/u/32880842/etc6/update-code-checkbox-no-
package.png
Which will result to this when user try to update it:
Plugin:
https://dl.dropboxusercontent.com/u/32880842/etc6/bulk-update-plugin-no-
package-error.png
Theme:
https://dl.dropboxusercontent.com/u/32880842/etc6/bulk-update-theme-no-
package-error.png
And i think that this error is unnecessary.
Effected Files:
1) wp-admin/themes.php
2) wp-admin/includes/theme.php
3) wp-admin/css/common.css (I didn't change minified version)
4) wp-admin/update-core.php
Patch Results:
1) Remove checkboxes of theme and plugin with no update package:
https://dl.dropboxusercontent.com/u/32880842/etc6/update-core-no-package-
no-checkbox.png
2) Remove update link (actually button) on themes screen if package not
available:
https://dl.dropboxusercontent.com/u/32880842/etc6/themes-screen-no-
package-no-button.png
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38084>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list