From bd13a5ec1296ff85e6de9d2739656a4e0338fbf4 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Thu, 2 Apr 2015 22:35:48 +0000 Subject: [PATCH] Add beforeunload string for shiny updates. See #31769. Props johnbillion, adamsilverstein, jorbin. git-svn-id: https://develop.svn.wordpress.org/trunk@31989 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/script-loader.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php index 883eadd0e5..ea7f5f4ef7 100644 --- a/src/wp-includes/script-loader.php +++ b/src/wp-includes/script-loader.php @@ -537,6 +537,7 @@ function wp_default_scripts( &$scripts ) { 'updatingMsg' => __( 'Updating... please wait.' ), 'updatedMsg' => __( 'Update completed successfully.' ), 'updateCancel' => __( 'Update canceled.' ), + 'beforeunload' => __( 'Plugin updates may not complete if you navigate away from this page.' ), ) ) );