diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index 482955ea21..d48ee3fa57 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -181,7 +181,7 @@ function register_block_script_handle( $metadata, $field_name, $index = 0 ) { $script_uri = get_block_asset_url( $script_path_norm ); $script_args = array(); - if ( 'viewScript' === $field_name ) { + if ( 'viewScript' === $field_name && $script_uri ) { $script_args['strategy'] = 'defer'; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 740ddf044d..1a9cff07a7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-beta1-56743'; +$wp_version = '6.4-beta1-56744'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.