diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index f9965a754989a..3f2d8c245bf44 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -744,6 +744,7 @@ public static function get_element_class_name( $element ) { array( 'spacing', 'margin' ), array( 'spacing', 'padding' ), array( 'typography', 'lineHeight' ), + array( 'typography', 'textColumns' ), ); /** diff --git a/tests/phpunit/tests/theme/wpThemeJson.php b/tests/phpunit/tests/theme/wpThemeJson.php index 45bc0681b0223..705069bf64fd6 100644 --- a/tests/phpunit/tests/theme/wpThemeJson.php +++ b/tests/phpunit/tests/theme/wpThemeJson.php @@ -291,7 +291,8 @@ public function test_get_settings_appearance_true_opts_in() { 'padding' => true, ), 'typography' => array( - 'lineHeight' => true, + 'lineHeight' => true, + 'textColumns' => true, ), 'blocks' => array( 'core/paragraph' => array( @@ -329,7 +330,8 @@ public function test_get_settings_appearance_true_opts_in() { 'padding' => true, ), 'typography' => array( - 'lineHeight' => false, + 'lineHeight' => false, + 'textColumns' => true, ), ), ),