Skip to content

Commit

Permalink
Social Link block: Obfuscate email address (#57384)
Browse files Browse the repository at this point in the history
Obfuscate the email address in the "Mail" variation of the Social Icon block
by applying the `antispambot()` function.
  • Loading branch information
ockham committed Dec 27, 2023
1 parent 232317e commit d33e9d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/social-link/index.php
Expand Up @@ -33,7 +33,7 @@ function render_block_core_social_link( $attributes, $content, $block ) {
* The `is_email` returns false for emails with schema.
*/
if ( is_email( $url ) ) {
$url = 'mailto:' . $url;
$url = 'mailto:' . antispambot( $url );
}

/**
Expand Down

0 comments on commit d33e9d2

Please sign in to comment.