Opened 9 years ago
Closed 9 years ago
#41407 closed defect (bug) (fixed)
Updating a plugin from the Plugin Install Screen throws a JavaScript error
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.9 | Priority: | normal |
| Severity: | normal | Version: | 4.6 |
| Component: | Upgrade/Install | Keywords: | has-patch shiny-updates |
| Focuses: | administration | Cc: |
Description
Hi,
/wp-admin/js/updates.js when refreshing the screen to decrement the count needs window._wpUpdatesItemCounts to be set. This is done using wp_localize_script() in the regular plugins list table. But this is not done in the plugin *install* list table.
When going into the Plugin Install screen having a plugin to upgrade we get this :
If from there i click on the "Update Now" button, i get this result :
The plugin is updated, but the screen is not refreshed. Bubbles in the WP Admin Bar and in the menu still show there's one plugin to upgrade.
And there's actually a JavaScript error because window._wpUpdatesItemCounts is undefined.
Using the patch i'm adding to this ticket, it's solving the issue.



In 41407.diff I refreshed the patch to apply cleanly again.