Make WordPress Core


Ignore:
Timestamp:
08/29/2025 05:16:50 PM (15 months ago)
Author:
jonsurrell
Message:

Script Loader: Revert sourceURL addition.

It was discovered that these changes cause some issues in the customizer when SCRIPT_DEBUG is false.

Reverts [60685] and [60686].

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

Props jonsurrell, wildworks, tyxla.
See #63887.

File:
1 edited

Legend:

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

    r60686 r60690  
    337337                        return false;
    338338                }
    339 
    340                 $output[] = sprintf(
    341                         '/*# sourceURL=%s */',
    342                         rawurlencode( "{$handle}-inline-css" )
    343                 );
    344339
    345340                $output = implode( "\n", $output );
Note: See TracChangeset for help on using the changeset viewer.