mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 14:14:36 +00:00
Logged out warnings:
- Replace the Close button with an always visible "X" icon in the top/right corner. - Check if the user is still logged in every 3 min. by default. - Add 'wp_auth_check_interval' filter so the interval can be set from PHP. See #23295. git-svn-id: https://develop.svn.wordpress.org/trunk@24695 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -113,6 +113,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
$scripts->add( 'wp-auth-check', "/wp-includes/js/wp-auth-check$suffix.js", array('heartbeat'), false, 1 );
|
||||
did_action( 'init' ) && $scripts->localize( 'wp-auth-check', 'authcheckL10n', array(
|
||||
'beforeunload' => __('Your session has expired. You can log in again from this page or go to the login page.'),
|
||||
'interval' => apply_filters( 'wp_auth_check_interval', 3 * MINUTE_IN_SECONDS ),
|
||||
) );
|
||||
|
||||
$scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array( 'wp-ajax-response', 'jquery-color' ), false, 1 );
|
||||
|
||||
Reference in New Issue
Block a user