Commit 5e3455d88b for wordpress.org

commit 5e3455d88b85d3aa0c4351284b4e9ffa5a1754d3
Author: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
Date:   Mon Nov 3 19:48:38 2025 +0000

    Block editor: Don't load fit text frontend scripts on the editor.

    This commit fixes an issue where the FitText frontend script (fit-text-frontend.js) was incorrectly being enqueued and loaded in the block editor when editing posts that contain blocks with the fitText attribute enabled. It had no big impact has the script does not do anything on the editor (the classes the script searches are not there) but still it's useless bytes we are sending.

    Developed in #10437.

    Props jorgefilipecosta, oandregal.
    Fixes #64173.
    Built from https://develop.svn.wordpress.org/trunk@61115


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

diff --git a/wp-includes/block-supports/typography.php b/wp-includes/block-supports/typography.php
index 02e2101fac..68f5669938 100644
--- a/wp-includes/block-supports/typography.php
+++ b/wp-includes/block-supports/typography.php
@@ -306,7 +306,7 @@ function wp_typography_get_preset_inline_style_value( $style_value, $css_propert
  * @return string Filtered block content.
  */
 function wp_render_typography_support( $block_content, $block ) {
-	if ( ! empty( $block['attrs']['fitText'] ) ) {
+	if ( ! empty( $block['attrs']['fitText'] ) && ! is_admin() ) {
 		wp_enqueue_script_module( '@wordpress/block-editor/utils/fit-text-frontend' );
 	}
 	if ( ! isset( $block['attrs']['style']['typography']['fontSize'] ) ) {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index bf1238e845..df32af205a 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '6.9-beta2-61114';
+$wp_version = '6.9-beta2-61115';

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