PluginProbe
Gutenberg / 22.7.0
Gutenberg v22.7.0
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
← All changes | build/scripts/block-library/button.php +1 -1 23.7.222.7.0 View file →
@@ -61,9 +61,9 @@
61 61 }
62 62
63 63 $width = $attributes['style']['dimensions']['width'] ?? null;
64 64
65 - if ( is_string( $width ) && '' !== $width ) {
65 + if ( $width ) {
66 66 // Resolve preset references to their actual values.
67 67 $resolved_width = $width;
68 68 $is_preset = str_starts_with( $width, 'var:preset|dimension|' );
69 69