else { wp_enqueue_style( $style_properties['style_handle'
] );
} } if ( isset( $style_properties['inline_style'
] ) ) { // Default to "wp-block-library".
$handle = 'wp-block-library';
// If the site loads separate styles per-block, check if the block has a stylesheet registered.
if ( wp_should_load_separate_core_block_assets() ) { $block_stylesheet_handle =
generate_block_asset_handle( $block_name, 'style'
);
if ( isset( $wp_styles->registered
[ $block_stylesheet_handle ] ) ) { $handle =
$block_stylesheet_handle;
} } // Add inline styles to the calculated handle.
wp_add_inline_style( $handle,
$style_properties['inline_style'
] );
} } }}