Make WordPress Core

Changeset 61414


Ignore:
Timestamp:
12/29/2025 10:47:40 AM (9 months ago)
Author:
jonsurrell
Message:

Scripts: Remove CDATA script wrappers in WP Admin.

Fix a regression from [61411] where CDATA wrappers were added to SCRIPT tags in WP Admin.

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

Follow-up to [61411].

Props sabernhardt.
See #64428, #59883.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r61411 r61414  
    29702970         */
    29712971        if (
    2972                 ! current_theme_supports( 'html5', 'script' ) &&
    2973                 (
     2972                ( ! current_theme_supports( 'html5', 'script' ) && ! is_admin() )
     2973                && (
    29742974                        ! isset( $attributes['type'] ) ||
    29752975                        'module' === $attributes['type'] ||
Note: See TracChangeset for help on using the changeset viewer.