Make WordPress Core


Ignore:
Timestamp:
07/12/2013 11:32:32 PM (13 years ago)
Author:
azaozz
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r24594 r24695  
    39443944    <div id="wp-auth-check-bg"></div>
    39453945    <div id="wp-auth-check">
     3946    <div class="wp-auth-check-close" tabindex="0" title="<?php esc_attr_e('Close'); ?>"></div>
    39463947    <?php
    39473948
     
    39583959        <?php _e('The login page will open in a new window. After logging in you can close it and return to this page.'); ?></p>
    39593960    </div>
    3960     <p class="wp-auth-check-close"><a href="#" class="button button-primary"><?php _e('Close'); ?></a></p>
    39613961    </div>
    39623962    </div>
     
    39753975    // If the user is logged in and we are outside the login grace period, bail.
    39763976    if ( is_user_logged_in() && empty( $GLOBALS['login_grace_period'] ) )
    3977         return $response;
    3978 
    3979     return array_merge( $response, array( 'wp-auth-check' => '1' ) );
     3977        return array_merge( $response, array( 'wp-auth-check' => '1' ) );
     3978
     3979    return array_merge( $response, array( 'wp-auth-check' => 'show' ) );
    39803980}
    39813981
Note: See TracChangeset for help on using the changeset viewer.