Make WordPress Core


Ignore:
Timestamp:
02/17/2022 02:45:53 PM (2 years ago)
Author:
ocean90
Message:

Script Loader: Prevent normalizing data URIs in _wp_normalize_relative_css_links().

This prevents making data URIs as in mask-image:url('data:image/svg+xml;utf8,<svg... relative to the WordPress installation.

Props staatic.
See #54243.
Fixes #55177.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r52743 r52754  
    27822782            }
    27832783
     2784            // Skip if the URL is a data URI.
     2785            if ( str_starts_with( $src_result, 'data:' ) ) {
     2786                continue;
     2787            }
     2788
    27842789            // Build the absolute URL.
    27852790            $absolute_url = dirname( $stylesheet_url ) . '/' . $src_result;
Note: See TracChangeset for help on using the changeset viewer.