-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the line height and custom units theme support flags consistent #23964
Make the line height and custom units theme support flags consistent #23964
Conversation
@@ -655,7 +655,7 @@ function gutenberg_extend_settings_block_patterns( $settings ) { | |||
* @return array Filtered editor settings. | |||
*/ | |||
function gutenberg_extend_settings_custom_line_height( $settings ) { | |||
$settings['__experimentalEnableCustomLineHeight'] = get_theme_support( 'experimental-line-height' ); | |||
$settings['enableCustomLineHeight'] = get_theme_support( 'custom-line-height' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was hesitant whether to call this "line-height" or "custom-line-height" I went with custom for consistency with other theme support flags (units, spacing).
This will require some changes to Core editor settings file. This was missed in previous betas. |
Size Change: +8.58 kB (0%) Total Size: 1.15 MB
ℹ️ View Unchanged
|
85ecfc7
to
fd9879f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@youknowriad Thank you for following up with this PR! It looks good to me. custom-line-height
makes sense to me!
I think we should make custom units opt-out not opt-in. |
Follow up to #23904
This makes both flags consistent: opt-in and stable as mentioned on the WP 5.5 release post https://wordpress.org/news/2020/07/wordpress-5-5-beta-1/