Changeset 59775 for trunk/src/wp-includes/blocks/social-link.php
- Timestamp:
- 02/07/2025 03:44:07 PM (12 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/social-link.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/social-link.php
r58275 r59775 43 43 /** 44 44 * Prepend URL with https:// if it doesn't appear to contain a scheme 45 * and it's not a relative link starting with //.45 * and it's not a relative link or a fragment. 46 46 */ 47 if ( ! parse_url( $url, PHP_URL_SCHEME ) && ! str_starts_with( $url, '//' ) ) {47 if ( ! parse_url( $url, PHP_URL_SCHEME ) && ! str_starts_with( $url, '//' ) && ! str_starts_with( $url, '#' ) ) { 48 48 $url = 'https://' . $url; 49 49 }
Note: See TracChangeset
for help on using the changeset viewer.