Changeset 52754
- Timestamp:
- 02/17/2022 02:45:53 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r52743 r52754 2782 2782 } 2783 2783 2784 // Skip if the URL is a data URI. 2785 if ( str_starts_with( $src_result, 'data:' ) ) { 2786 continue; 2787 } 2788 2784 2789 // Build the absolute URL. 2785 2790 $absolute_url = dirname( $stylesheet_url ) . '/' . $src_result; -
trunk/tests/phpunit/tests/dependencies/styles.php
r52695 r52754 237 237 'expected' => 'clip-path: url(#image1);', 238 238 ), 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 ), 239 243 ); 240 244 }
Note: See TracChangeset
for help on using the changeset viewer.