Opened 9 years ago
Last modified 6 years ago
#35018 new defect (bug)
The authentication check modal dialog appears just once
Reported by: | afercia | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.4 |
Component: | Login and Registration | Keywords: | has-patch |
Focuses: | ui, javascript | Cc: |
Description
Noticed while investigating on #34951. To reproduce:
- edit a post
- open a new tab, go in some other admin screen and log out
- in the tab with the edit post screen, after a while the authentication modal dialog appears
- login again using the modal dialog
- repeat step 2
The authentication modal dialog won't appear again because, as far as I see, when it gets hidden the custom event that triggers the dialog gets removed. See hide()
in /wp-includes/js/wp-auth-check.js
$(document).off( 'heartbeat-tick.wp-auth-check' );
Not sure why the event is removed.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
The patch fixes so the modal dialog appear again after second logout. Still removes the event if you close the modal by clicking the close button.