enqueue_legacy_post_comments_block_styles() – Enqueues styles from the legacy `core/post-comments` block. These styles are required only by the block’s fallback.
You appear to be a bot. Output may be restricted
Description
Enqueues styles from the legacy core/post-comments
block. These styles are required only by the block's fallback.
Usage
enqueue_legacy_post_comments_block_styles( $block_name );
Parameters
- $block_name
- ( string ) required – Name of the new block type.
Returns
void
Source
File name: wordpress/wp-includes/blocks/comments.php
Lines:
1 to 15 of 15
function enqueue_legacy_post_comments_block_styles( $block_name ) { static $are_styles_enqueued = false; if ( ! $are_styles_enqueued ) { $handles = array( 'wp-block-post-comments', 'wp-block-buttons', 'wp-block-button', ); foreach ( $handles as $handle ) { wp_enqueue_block_style( $block_name, array( 'handle' => $handle ) ); } $are_styles_enqueued = true; } }