Make WordPress Core

Opened 5 years ago

Last modified 5 months ago

#38084 new defect (bug)

Fix Inconsistency Theme and Plugin Update Process When No Package Found

Reported by: turtlepod Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 4.6.1
Component: Upgrade/Install Keywords: needs-patch
Focuses: ui, administration Cc:


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 ):

Theme Modal in Theme Screen ( wp-admin/themes.php?theme={theme-name} ) :

However, WP still show update action link in:

1) Theme Screen ( themes.php ):

Which result to this if user click it:

2) Update Screen ( wp-admin/update-core.php ):
Still show the update checkboxes

Which will result to this when user try to update it:



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:

2) Remove update link (actually button) on themes screen if package not available:

Attachments (1)

38084.patch (6.3 KB) - added by turtlepod 5 years ago.

Download all attachments as: .zip

Change History (6)

5 years ago

#1 @desrosj
2 years ago

  • Keywords close reporter-feedback added

Hi @turtlepod,

Do the inconsistencies still exist in the latest version of WordPress? Unfortunately, it's impossible to investigate because the screenshots provided in the ticket description are all now returning 404 errors.

In the future, please upload the screenshots directly to the ticket in Trac. This ensures they are maintained indefinitely.

I am going to mark this as a close candidate pending reporter feedback.

#2 @turtlepod
2 years ago

Sorry, dropbox disable direct link to files. (Sorry, I can't really remember if this issue still valid/already fixed)

Here's the working screenshot link:

Plugin Screen ( wp-admin/plugins.php ):

Theme Modal in Theme Screen ( wp-admin/themes.php?theme={theme-name} ) :

However, WP still show update action link in:

1) Theme Screen ( themes.php ):

Which result to this if user click it:

2) Update Screen ( wp-admin/update-core.php ):
Still show the update checkboxes

Which will result to this when user try to update it:

Let me know if you have any question.

Version 0, edited 2 years ago by turtlepod (next)

#3 @desrosj
2 years ago

  • Keywords needs-patch added; close reporter-feedback removed
  • Severity changed from normal to minor

Thank you for getting back so quickly, @turtlepod.

I've confirmed that this is still present. Update links are displayed even when the user is not able to perform the update.

#4 @turtlepod
2 years ago

@desrosj I added patch (3 years ago)
(you can check the attachment)

is it not working? do you need new one?

This ticket was mentioned in Slack in #core-auto-updates by francina. View the logs.

5 months ago

Note: See TracTickets for help on using tickets.