mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
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
This commit is contained in:
parent
337cfb97c1
commit
0420eac464
@ -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' ) )
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user