Ticket #58012: 58012.diff
File 58012.diff, 1.0 KB (added by , 23 months ago) |
---|
-
src/wp-admin/load-styles.php
16 16 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); 17 17 18 18 require ABSPATH . 'wp-admin/includes/noop.php'; 19 require ABSPATH . WPINC . '/compat.php'; 19 20 require ABSPATH . WPINC . '/theme.php'; 20 21 require ABSPATH . WPINC . '/class-wp-theme-json-resolver.php'; 21 22 require ABSPATH . WPINC . '/global-styles-and-settings.php'; … … 73 74 74 75 $content = get_file( $path ) . "\n"; 75 76 76 // str_starts_with() is not used here, as wp-includes/compat.php is not loaded in this file. 77 if ( 0 === strpos( $style->src, '/' . WPINC . '/css/' ) ) { 77 if ( str_starts_with( $style->src, '/' . WPINC . '/css/' ) ) { 78 78 $content = str_replace( '../images/', '../' . WPINC . '/images/', $content ); 79 79 $content = str_replace( '../js/tinymce/', '../' . WPINC . '/js/tinymce/', $content ); 80 80 $content = str_replace( '../fonts/', '../' . WPINC . '/fonts/', $content );