Changeset 48285
- Timestamp:
- 07/03/2020 07:03:23 PM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/auth-check.js
r48056 r48285 24 24 // Add unload confirmation to counter (frame-busting) JS redirects. 25 25 $(window).on( 'beforeunload.wp-auth-check', function(e) { 26 e.originalEvent.returnValue = w indow.authcheckL10n.beforeunload;26 e.originalEvent.returnValue = wp.i18n.__( 'Your session has expired. You can log in again from this page or go to the login page.' ); 27 27 }); 28 28 -
trunk/src/wp-includes/script-loader.php
r48276 r48285 700 700 701 701 $scripts->add( 'wp-auth-check', "/wp-includes/js/wp-auth-check$suffix.js", array( 'heartbeat' ), false, 1 ); 702 did_action( 'init' ) && $scripts->localize( 703 'wp-auth-check', 704 'authcheckL10n', 705 array( 706 'beforeunload' => __( 'Your session has expired. You can log in again from this page or go to the login page.' ), 707 ) 708 ); 702 $scripts->set_translations( 'wp-auth-check' ); 709 703 710 704 $scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array( 'wp-ajax-response', 'jquery-color' ), false, 1 );
Note: See TracChangeset
for help on using the changeset viewer.