diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index 28e269c1d9..cec2f36925 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -20,10 +20,14 @@ function remove_block_asset_path_prefix( $asset_handle_or_path ) { if ( 0 !== strpos( $asset_handle_or_path, $path_prefix ) ) { return $asset_handle_or_path; } - return substr( + $path = substr( $asset_handle_or_path, strlen( $path_prefix ) ); + if ( strpos( $path, './' ) === 0 ) { + $path = substr( $path, 2 ); + } + return $path; } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 54a3df76ed..157726951f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52698'; +$wp_version = '6.0-alpha-52699'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.