| @@ -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 = ''; |