Opened 11 years ago
Last modified 7 years ago
#35018 new defect (bug)
The authentication check modal dialog appears just once
| Reported by: | afercia | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Login and Registration | Version: | 4.4 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | ui, javascript |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.