Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58664, comment 29


Ignore:
Timestamp:
09/25/2023 11:25:17 PM (3 months ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58664, comment 29

    initial v1  
    3434                $src = esc_url_raw( apply_filters( 'script_loader_src', $src, $handle ) );
    3535 
    36 +               if ( preg_match( "/^(.+?)' (.*)$/", $src, $matches ) ) {
     36+               if ( preg_match( "/^(.+?)'\s(.*)$/", $src, $matches ) ) {
    3737+                       _deprecated_hook( 'clean_url', '6.3', 'script loading strategies', __( 'Do not use clean_url filter to inject script tag attributes.' ) );
    3838+                       $src = $matches[1];