From 0420eac464e0a79bd078b46ce6c76589d8468dff Mon Sep 17 00:00:00 2001 From: desrosj Date: Wed, 30 Jun 2021 18:48:58 +0000 Subject: [PATCH] Script Loader: Revert [51267]. This was missed in [51268] when reverting [51259-51260,51265]. Props pbiron. Merges [51288] to the 5.8 branch. See #53397. Built from https://develop.svn.wordpress.org/branches/5.8@51291 git-svn-id: http://core.svn.wordpress.org/branches/5.8@50900 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/blocks.php | 7 +------ wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index d9c47b64ba..8b3aded418 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -78,12 +78,7 @@ function register_block_script_handle( $metadata, $field_name ) { return $script_handle; } - $script_handle = generate_block_asset_handle( $metadata['name'], $field_name ); - - if ( 'viewScript' === $field_name ) { - $script_path = str_replace( '.min.js', '.js', $script_path ); - } - + $script_handle = generate_block_asset_handle( $metadata['name'], $field_name ); $script_asset_path = realpath( dirname( $metadata['file'] ) . '/' . substr_replace( $script_path, '.asset.php', - strlen( '.js' ) ) diff --git a/wp-includes/version.php b/wp-includes/version.php index cfd1538a12..2895f68e4d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-RC1-51290'; +$wp_version = '5.8-RC1-51291'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.