Make WordPress Core


Ignore:
Timestamp:
03/27/2013 08:43:11 AM (12 years ago)
Author:
azaozz
Message:

Logged out warnings: add fallback text dialog for:

  • The login page has "X-Frame-Options: DENY" header.
  • Cross-domain when displaying on the front-end on multisite with domain mapping.
  • The site forces ssl login but not ssl admin.

Add onbeforeunload prompt to counter (frame-busting) JS redirects. Move the JS and CSS into separate files. See #23295.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r23769 r23805  
    113113        apply_filters( 'heartbeat_settings', array() )
    114114    );
     115
     116    $scripts->add( 'wp-auth-check', "/wp-includes/js/wp-auth-check$suffix.js", array('heartbeat'), false, 1 );
     117    did_action( 'init' ) && $scripts->localize( 'wp-auth-check', 'authcheckL10n', array(
     118        'beforeunload' => __('Your session has expired. You can log in again from this page or go to the login page.'),
     119    ) );
    115120
    116121    $scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array( 'wp-ajax-response', 'jquery-color' ), false, 1 );
     
    544549    $styles->add( 'media-views', "/wp-includes/css/media-views$suffix.css", array( 'buttons' ) );
    545550    $styles->add( 'buttons', "/wp-includes/css/buttons$suffix.css" );
     551    $styles->add( 'wp-auth-check', "/wp-includes/css/wp-auth-check$suffix.css" );
    546552
    547553    $styles->add( 'mediaelement', "/wp-includes/js/mediaelement/mediaelementplayer$suffix.css" );
Note: See TracChangeset for help on using the changeset viewer.