PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.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 All 404 releases
← All changes | build/scripts/block-library/post-template.php +3 -0 23.0.1 → trunk View file →
@@ -93,8 +93,11 @@
93 93 // Ensure backwards compatibility by flagging the number of columns via classname when using grid layout.
94 94 if ( isset( $attributes['layout']['type'] ) && 'grid' === $attributes['layout']['type'] && ! empty( $attributes['layout']['columnCount'] ) ) {
95 95 $classnames .= ' ' . sanitize_title( 'columns-' . $attributes['layout']['columnCount'] );
96 96 }
97 + if ( isset( $attributes['layout']['type'] ) && 'grid' === $attributes['layout']['type'] && ! empty( $attributes['layout']['columnCount'] ) && ! empty( $attributes['layout']['minimumColumnWidth'] ) ) {
98 + $classnames .= ' has-native-responsive-grid';
99 + }
97 100
98 101 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => trim( $classnames ) ) );
99 102
100 103 $content = '';