Skip to content

Commit 774cc83

Browse files
committed
Editor: Add textColumn block support to appearance tools opt-ins.
This changeset adds `textColumn` block support to appearance tools opt-ins. Backports Gutenberg PR 74656: WordPress/gutenberg#74656 Props scruffian, wildworks. Fixes #64530 git-svn-id: https://develop.svn.wordpress.org/trunk@61570 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 50bf29c commit 774cc83

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/wp-includes/class-wp-theme-json.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,7 @@ public static function get_element_class_name( $element ) {
744744
array( 'spacing', 'margin' ),
745745
array( 'spacing', 'padding' ),
746746
array( 'typography', 'lineHeight' ),
747+
array( 'typography', 'textColumns' ),
747748
);
748749

749750
/**

tests/phpunit/tests/theme/wpThemeJson.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,14 @@ public function test_get_settings_appearance_true_opts_in() {
291291
'padding' => true,
292292
),
293293
'typography' => array(
294-
'lineHeight' => true,
294+
'lineHeight' => true,
295+
'textColumns' => true,
295296
),
296297
'blocks' => array(
297298
'core/paragraph' => array(
298299
'typography' => array(
299-
'lineHeight' => false,
300-
),
300+
'lineHeight' => false,
301+
'textColumns' => true, ),
301302
),
302303
'core/group' => array(
303304
'background' => array(

0 commit comments

Comments
 (0)