Make WordPress Core


Ignore:
Timestamp:
08/28/2025 02:44:30 PM (7 months ago)
Author:
jonsurrell
Message:

Script Loader: Remove "inline:" prefix from sourceURL.

The prefix may negatively impact some APIs such as the Long Animation Frames API.

Developed in https://github.com/WordPress/wordpress-develop/pull/9655.

Follow-up to [60685].

Props jonsurrell, swissspidy.
Fixes #63887.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-styles.php

    r60685 r60686  
    339339
    340340        $output[] = sprintf(
    341             '/*# sourceURL=inline:%s */',
     341            '/*# sourceURL=%s */',
    342342            rawurlencode( "{$handle}-inline-css" )
    343343        );
Note: See TracChangeset for help on using the changeset viewer.