Commit 7efd772694 for wordpress.org

commit 7efd772694ab58309ade4359a92e985c7c29fb77
Author: jonsurrell <jonsurrell@git.wordpress.org>
Date:   Mon Dec 29 10:49:33 2025 +0000

    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.

    Built from https://develop.svn.wordpress.org/trunk@61414


    git-svn-id: http://core.svn.wordpress.org/trunk@60726 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php
index 60d94a3a06..4ac143a918 100644
--- a/wp-includes/script-loader.php
+++ b/wp-includes/script-loader.php
@@ -2969,8 +2969,8 @@ function wp_get_inline_script_tag( $data, $attributes = array() ) {
 	 * @see https://www.w3.org/TR/xhtml1/#h-4.8
 	 */
 	if (
-		! current_theme_supports( 'html5', 'script' ) &&
-		(
+		( ! current_theme_supports( 'html5', 'script' ) && ! is_admin() )
+		&& (
 			! isset( $attributes['type'] ) ||
 			'module' === $attributes['type'] ||
 			str_contains( $attributes['type'], 'javascript' ) ||
diff --git a/wp-includes/version.php b/wp-includes/version.php
index a612a51e6c..bfbab54778 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.0-alpha-61413';
+$wp_version = '7.0-alpha-61414';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.