diff -r 48c4eec2b7e6 -r 8c2e4d02f4ef wp/wp-includes/blocks/social-link.php
--- a/wp/wp-includes/blocks/social-link.php Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/blocks/social-link.php Fri Sep 05 18:52:52 2025 +0200
@@ -42,9 +42,9 @@
/**
* Prepend URL with https:// if it doesn't appear to contain a scheme
- * and it's not a relative link starting with //.
+ * and it's not a relative link or a fragment.
*/
- if ( ! parse_url( $url, PHP_URL_SCHEME ) && ! str_starts_with( $url, '//' ) ) {
+ if ( ! parse_url( $url, PHP_URL_SCHEME ) && ! str_starts_with( $url, '//' ) && ! str_starts_with( $url, '#' ) ) {
$url = 'https://' . $url;
}
@@ -169,6 +169,10 @@
'name' => 'DeviantArt',
'icon' => '',
),
+ 'discord' => array(
+ 'name' => 'Discord',
+ 'icon' => '',
+ ),
'dribbble' => array(
'name' => 'Dribbble',
'icon' => '',