mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-03 21:22:54 +00:00
Script Loader: Revert [51267].
This was missed in [51268] when reverting [51259-51260,51265]. Props pbiron. See #53397. git-svn-id: https://develop.svn.wordpress.org/trunk@51288 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6da1212c97
commit
a7804f73e1
@ -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' ) )
|
||||
|
||||
Loading…
Reference in New Issue
Block a user