diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 137f74765b..61548c59b8 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -672,7 +672,7 @@ function wp_default_scripts( &$scripts ) { $scripts->add( 'admin-gallery', "/wp-admin/js/gallery$suffix.js", array( 'jquery-ui-sortable' ) ); $scripts->add( 'admin-widgets', "/wp-admin/js/widgets$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable' ), false, 1 ); - $scripts->add_inline_script( 'admin-widgets', sprintf( 'wpWidgets.l10n = %s;', wp_json_encode( array( + did_action( 'init' ) && $scripts->add_inline_script( 'admin-widgets', sprintf( 'wpWidgets.l10n = %s;', wp_json_encode( array( 'save' => __( 'Save' ), 'saved' => __( 'Saved' ), 'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ), diff --git a/wp-includes/version.php b/wp-includes/version.php index 788e74f534..fb117da84d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41359'; +$wp_version = '4.9-alpha-41360'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.