Make WordPress Core


Ignore:
Timestamp:
02/17/2022 02:45:53 PM (3 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/tests/phpunit/tests/dependencies/styles.php

    r52695 r52754  
    237237                'expected' => 'clip-path: url(#image1);',
    238238            ),
     239            'Data URIs, shouldn\'t change'                 => array(
     240                'css'      => 'img {mask-image: url(\'data:image/svg+xml;utf8,<svg></svg>\');}',
     241                'expected' => 'img {mask-image: url(\'data:image/svg+xml;utf8,<svg></svg>\');}',
     242            ),
    239243        );
    240244    }
Note: See TracChangeset for help on using the changeset viewer.