Index: src/wp-admin/load-styles.php
===================================================================
--- src/wp-admin/load-styles.php	(revision 55710)
+++ src/wp-admin/load-styles.php	(working copy)
@@ -16,6 +16,7 @@
 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
 
 require ABSPATH . 'wp-admin/includes/noop.php';
+require ABSPATH . WPINC . '/compat.php';
 require ABSPATH . WPINC . '/theme.php';
 require ABSPATH . WPINC . '/class-wp-theme-json-resolver.php';
 require ABSPATH . WPINC . '/global-styles-and-settings.php';
@@ -73,8 +74,7 @@
 
 	$content = get_file( $path ) . "\n";
 
-	// str_starts_with() is not used here, as wp-includes/compat.php is not loaded in this file.
-	if ( 0 === strpos( $style->src, '/' . WPINC . '/css/' ) ) {
+	if ( str_starts_with( $style->src, '/' . WPINC . '/css/' ) ) {
 		$content = str_replace( '../images/', '../' . WPINC . '/images/', $content );
 		$content = str_replace( '../js/tinymce/', '../' . WPINC . '/js/tinymce/', $content );
 		$content = str_replace( '../fonts/', '../' . WPINC . '/fonts/', $content );
