wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
enqueue_legacy_post_comments_block_styles › WordPress Function
Od6.1.0
Przestarzałyn/a
› enqueue_legacy_post_comments_block_styles ( $block_name )
| Parametry: |
|
| Zdefiniowane na: |
|
| Codex: |
Enqueues styles from the legacy `core/post-comments` block. These styles are required only by the block's fallback.
Źródło
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;
}
}