Make WordPress Core


Ignore:
Timestamp:
08/29/2025 05:16:50 PM (2 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-scripts.php

    r60686 r60690  
    222222            return;
    223223        }
    224 
    225         $output .= sprintf(
    226             "\n//# sourceURL=%s",
    227             rawurlencode( "{$handle}-js-extra" )
    228         );
    229224
    230225        if ( ! $display ) {
     
    526521            return '';
    527522        }
    528 
    529         $data[] = sprintf(
    530             '//# sourceURL=%s',
    531             rawurlencode( "{$handle}-js-{$position}" )
    532         );
    533523
    534524        return trim( implode( "\n", $data ), "\n" );
Note: See TracChangeset for help on using the changeset viewer.