Commit b4e9bf6f5c for wordpress.org

commit b4e9bf6f5c25ad82b57cda26e1d63b83913a1ff6
Author: jonsurrell <jonsurrell@git.wordpress.org>
Date:   Mon Oct 19 05:57:49 2026 +0000

    Script Loader: Document `wp_inline_script_attributes` `$data` parameter quirk.

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

    Props jonsurrell, westonruter.
    See #65860, #66308.

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


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

diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php
index 629f537fb3..6bd1b22c6d 100644
--- a/wp-includes/script-loader.php
+++ b/wp-includes/script-loader.php
@@ -3588,6 +3588,12 @@ function wp_get_inline_script_tag( $data, $attributes = array() ) {
 	/**
 	 * Filters attributes to be added to a script tag.
 	 *
+	 * Escaping and normalization can make the text a browser parses from the printed tag differ
+	 * from `$data`. A callback that needs that text, such as one computing a CSP hash, can set
+	 * `$data` as the modifiable text of a SCRIPT tag in a `WP_HTML_Tag_Processor` with the
+	 * filtered attributes applied and then read {@see WP_HTML_Tag_Processor::get_modifiable_text()},
+	 * at a late priority so that the attributes are final.
+	 *
 	 * @since 5.7.0
 	 *
 	 * @param array<string, string|bool> $attributes Key-value pairs representing `<script>` tag attributes.
diff --git a/wp-includes/version.php b/wp-includes/version.php
index da503ff44c..4df6c9de92 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.2-alpha-64495';
+$wp_version = '7.2-alpha-64496';

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