diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index f3014a241f..5d842f5787 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -383,6 +383,22 @@ function wp_default_packages_inline_scripts( $scripts ) { ) ); + // Backwards compatibility - configure the old wp-data persistence system. + $scripts->add_inline_script( + 'wp-data', + implode( + "\n", + array( + '( function() {', + ' var userId = ' . get_current_user_ID() . ';', + ' var storageKey = "WP_DATA_USER_" + userId;', + ' wp.data', + ' .use( wp.data.plugins.persistence, { storageKey: storageKey } );', + '} )();', + ) + ) + ); + // Calculate the timezone abbr (EDT, PST) if possible. $timezone_string = get_option( 'timezone_string', 'UTC' ); $timezone_abbr = ''; diff --git a/wp-includes/version.php b/wp-includes/version.php index 2ce330422e..7a6eca6bb3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-beta3-54484'; +$wp_version = '6.1-beta3-54485'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.