diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index bc52a5f907..d351a502d6 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -2770,6 +2770,11 @@ function _wp_normalize_relative_css_links( $css, $stylesheet_url ) { continue; } + // Skip if the URL is an HTML ID. + if ( str_starts_with( $src_result, '#' ) ) { + continue; + } + // Build the absolute URL. $absolute_url = dirname( $stylesheet_url ) . '/' . $src_result; $absolute_url = str_replace( '/./', '/', $absolute_url ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 69ea982902..0343f7ee17 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52694'; +$wp_version = '6.0-alpha-52695'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.