[wp-trac] [WordPress Trac] #35018: The authentication check modal dialog appears just once
WordPress Trac
noreply at wordpress.org
Fri Dec 11 17:12:27 UTC 2015
#35018: The authentication check modal dialog appears just once
------------------------------------+-----------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version: 4.4
Severity: normal | Keywords:
Focuses: ui, javascript |
------------------------------------+-----------------------------
Noticed while investigating on #34951. To reproduce:
1. edit a post
2. open a new tab, go in some other admin screen and log out
3. in the tab with the edit post screen, after a while the authentication
modal dialog appears
4. login again using the modal dialog
5. 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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35018>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list