Opened 3 years ago
Closed 3 years ago
#54886 closed defect (bug) (fixed)
"Show hidden updates" button is invisible
Reported by: | SergeyBiryukov | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.9.1 | Priority: | normal |
Severity: | normal | Version: | 5.5 |
Component: | Upgrade/Install | Keywords: | has-patch has-screenshots fixed-major needs-testing has-testing-info |
Focuses: | ui, javascript, administration | Cc: |
Description (last modified by )
Reported by @malinevskiy on Russian support forums: How do I bring back the Update Now button?
In recent WordPress versions, the "Show hidden updates" button on the WordPress Updates screen is invisible and cannot be used.
Steps to reproduce:
- Install a localized package (not the latest), e.g. WordPress 5.7-ru_RU.
- Make sure to complete the installation in a non-English language, as the "Hide this update" button is only available for localized installs.
- Go to the WordPress Updates screen.
- Next to the update to the latest localized version (currently WordPress 5.8.3–ru_RU), click "Hide this update".
- Note that the hidden update is completely gone from the screen and cannot be brought back.
The expected result is to get a "Show hidden updates" button, which displays a list of previously hidden updates with an option to bring them back or update right away.
I have traced the issue back to [48323]. Before that change, the button is visible and works as expected. There is some JS code on the WordPress Updates screen to handle that button, which uses the .toggle( handler, handler ) method signature deprecated in jQuery 1.8 and removed in jQuery 1.9. Apparently this functionality was previously polyfilled by jQuery Migrate 1.4.1, and is no longer available after its removal.
The JS code in question should be updated for jQuery 1.9+. This is not strictly a WordPress 5.9 issue, but still a recent regression, so I'm proposing the fix for 5.9.1 consideration.
Attachments (4)
Change History (12)
#2
@
3 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 52644:
#3
@
3 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for 5.9.1 consideration.
Some history here: [9441], [9543], [42785], [48323].