diff --git a/lib/block-supports/layout.php b/lib/block-supports/layout.php index cfbe75e77e1e2e..65f2d0cefd9d2b 100644 --- a/lib/block-supports/layout.php +++ b/lib/block-supports/layout.php @@ -39,8 +39,8 @@ function gutenberg_get_layout_style( $selector, $layout, $has_block_gap_support $style = ''; if ( 'default' === $layout_type ) { - $content_size = isset( $layout['contentSize'] ) ? $layout['contentSize'] : null; - $wide_size = isset( $layout['wideSize'] ) ? $layout['wideSize'] : null; + $content_size = isset( $layout['contentSize'] ) ? $layout['contentSize'] : ''; + $wide_size = isset( $layout['wideSize'] ) ? $layout['wideSize'] : ''; $all_max_width_value = $content_size ? $content_size : $wide_size; $wide_max_width_value = $wide_size ? $wide_size : $content_size;