mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-09 15:14:37 +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:
@@ -3943,6 +3943,7 @@ function wp_auth_check_html() {
|
||||
<div id="wp-auth-check-wrap" class="<?php echo $wrap_class; ?>">
|
||||
<div id="wp-auth-check-bg"></div>
|
||||
<div id="wp-auth-check">
|
||||
<div class="wp-auth-check-close" tabindex="0" title="<?php esc_attr_e('Close'); ?>"></div>
|
||||
<?php
|
||||
|
||||
if ( $same_domain ) {
|
||||
@@ -3957,7 +3958,6 @@ function wp_auth_check_html() {
|
||||
<p><a href="<?php echo esc_url( $login_url ); ?>" target="_blank"><?php _e('Please log in again.'); ?></a>
|
||||
<?php _e('The login page will open in a new window. After logging in you can close it and return to this page.'); ?></p>
|
||||
</div>
|
||||
<p class="wp-auth-check-close"><a href="#" class="button button-primary"><?php _e('Close'); ?></a></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
@@ -3974,9 +3974,9 @@ function wp_auth_check( $response, $data ) {
|
||||
|
||||
// If the user is logged in and we are outside the login grace period, bail.
|
||||
if ( is_user_logged_in() && empty( $GLOBALS['login_grace_period'] ) )
|
||||
return $response;
|
||||
return array_merge( $response, array( 'wp-auth-check' => '1' ) );
|
||||
|
||||
return array_merge( $response, array( 'wp-auth-check' => '1' ) );
|
||||
return array_merge( $response, array( 'wp-auth-check' => 'show' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -4018,4 +4018,4 @@ function _canonical_charset( $charset ) {
|
||||
return 'ISO-8859-1';
|
||||
|
||||
return $charset;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user