Skip to content

Commit c711e2a

Browse files
authoredJun 28, 2023
Updating social link attributes (#51997)
1 parent 2aa50e7 commit c711e2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/block-library/src/social-link/index.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ function render_block_core_social_link( $attributes, $content, $block ) {
4747
$icon = block_core_social_link_get_icon( $service );
4848
$wrapper_attributes = get_block_wrapper_attributes(
4949
array(
50-
'class' => 'wp-social-link wp-social-link-' . $service . block_core_social_link_get_color_classes( $block->context ),
51-
'style' => block_core_social_link_get_color_styles( $block->context ),
50+
'class' => esc_attr( 'wp-social-link wp-social-link-' . $service . block_core_social_link_get_color_classes( $block->context ) ),
51+
'style' => esc_attr( block_core_social_link_get_color_styles( $block->context ) ),
5252
)
5353
);
5454

0 commit comments

Comments
 (0)