rebase on oct-10-2023
This commit is contained in:
@@ -73,7 +73,8 @@ foreach ( $load as $handle ) {
|
||||
|
||||
$content = get_file( $path ) . "\n";
|
||||
|
||||
if ( strpos( $style->src, '/' . WPINC . '/css/' ) === 0 ) {
|
||||
// Note: 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/' ) ) {
|
||||
$content = str_replace( '../images/', '../' . WPINC . '/images/', $content );
|
||||
$content = str_replace( '../js/tinymce/', '../' . WPINC . '/js/tinymce/', $content );
|
||||
$content = str_replace( '../fonts/', '../' . WPINC . '/fonts/', $content );
|
||||
|
||||
Reference in New Issue
Block a user