Commit 3d4fb869f6 for wordpress.org

commit 3d4fb869f68af4ce570869d6b0b279f4692931e0
Author: isabel_brison <isabel_brison@git.wordpress.org>
Date:   Tue Oct 13 05:50:52 2026 +0000

    Editor: unset incompatible dimensions styles in viewport states.

    Re-adds a missed line from a previous Gutenberg sync to enable unsetting height and min-height when aspect ratio is set for a viewport state, and vice versa.

    Props isabel_brison, westonruter, marian1, abditsori.
    Fixes #66275.

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


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

diff --git a/wp-includes/block-supports/states.php b/wp-includes/block-supports/states.php
index 147f770855..ebd2c0915a 100644
--- a/wp-includes/block-supports/states.php
+++ b/wp-includes/block-supports/states.php
@@ -364,6 +364,7 @@ function wp_get_block_state_element_selectors( $root_selector ) {
  * Adds a compiled state style rule to a rule list.
  *
  * @since 7.1.0
+ * @since 7.2.0 Added fallback dimension styles.
  *
  * @param array       $css_rules   Style rules.
  * @param string      $state       Pseudo-state selector.
@@ -376,6 +377,8 @@ function wp_add_block_state_style_rule( &$css_rules, $state, $selector, $style,
 		return;
 	}

+	$style = wp_get_state_style_with_fallback_dimension_styles( $style );
+
 	$compiled     = wp_style_engine_get_styles(
 		wp_normalize_state_style_for_css_output( $style )
 	);
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 00c74af431..9febcd0dc8 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.2-alpha-64321';
+$wp_version = '7.2-alpha-64322';

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