mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 04:34:31 +00:00
Administration: Remove wp-auth-check from the Heartbeat API.
As of [27153], wp-auth-check is returned on all heartbeats without the need for data from client-side. This also means that the timing and scheduling of this request data is ineffectual. Fixes #50305. Props dsixinetu, azaozz, whyisjake. git-svn-id: https://develop.svn.wordpress.org/trunk@48056 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -719,16 +719,6 @@ function wp_default_scripts( $scripts ) {
|
||||
'authcheckL10n',
|
||||
array(
|
||||
'beforeunload' => __( 'Your session has expired. You can log in again from this page or go to the login page.' ),
|
||||
|
||||
/**
|
||||
* Filters the authentication check interval.
|
||||
*
|
||||
* @since 3.6.0
|
||||
*
|
||||
* @param int $interval The interval in which to check a user's authentication.
|
||||
* Default 3 minutes in seconds, or 180.
|
||||
*/
|
||||
'interval' => apply_filters( 'wp_auth_check_interval', 3 * MINUTE_IN_SECONDS ),
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user