Opened 9 years ago
Closed 9 years ago
#37285 closed defect (bug) (fixed)
Shiny Updates: Cancelling the filesystem credentials prevents updating themes unless you reload
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | Upgrade/Install | Keywords: | has-patch commit |
Focuses: | javascript | Cc: |
Description
Running on the latest nightly: 4.6-beta1-37961
Reproducible: every time
Steps to reproduce:
1) Set up WordPress, and set permissions to that the 'filesystem credentials' dialog will be required when performing theme updates.
2) Go to /wp-admin/themes.php
3) Click on "Update now". The filesystem credentials dialog should open. "Update now" will turn to "Updating..."
4) Close the filesystem credentials dialog. "Updating..." will return to "Update now".
5) Click again on "Update now".
Result: nothing happens.
Excepted result: filesystem credentials dialog should open again. You can only get it back by reloading the page.
Looking at the code, it seems that the initial click cancels all listeners with .off() - and they are never registered again.
Attachments (1)
Change History (9)
#1
@
9 years ago
- Focuses javascript added
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 4.6
- Summary changed from Shiny Updates: (bug): cancelling the filesystem credentials prevents updating unless you reload to Shiny Updates: Cancelling the filesystem credentials prevents updating themes unless you reload
#2
@
9 years ago
- Keywords has-patch added; needs-patch removed
I don't know why this was added, but I didn't encounter any problems after removing the this.$el.off( 'click', '.update-message' );
line.
#3
@
9 years ago
@DavidAnderson Can you confirm whether 37285.diff solves the issue? Thanks!
Confirmed, doesn't happen for plugins.