Skip to content

Commit

Permalink
Fix: Logic to enable custom colors, gradients, and font sizes. (#32200)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored May 26, 2021
1 parent a2d870e commit f6e7605
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/global-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,19 @@ function_exists( 'gutenberg_is_edit_site_page' ) &&
unset( $settings['__experimentalFeatures']['color']['gradients'] );
}
if ( isset( $settings['__experimentalFeatures']['color']['custom'] ) ) {
$settings['disableCustomColors'] = $settings['__experimentalFeatures']['color']['custom'];
$settings['disableCustomColors'] = ! $settings['__experimentalFeatures']['color']['custom'];
unset( $settings['__experimentalFeatures']['color']['custom'] );
}
if ( isset( $settings['__experimentalFeatures']['color']['customGradient'] ) ) {
$settings['disableCustomGradients'] = $settings['__experimentalFeatures']['color']['customGradient'];
$settings['disableCustomGradients'] = ! $settings['__experimentalFeatures']['color']['customGradient'];
unset( $settings['__experimentalFeatures']['color']['customGradient'] );
}
if ( isset( $settings['__experimentalFeatures']['typography']['fontSizes'] ) ) {
$settings['fontSizes'] = $settings['__experimentalFeatures']['typography']['fontSizes'];
unset( $settings['__experimentalFeatures']['typography']['fontSizes'] );
}
if ( isset( $settings['__experimentalFeatures']['typography']['customFontSize'] ) ) {
$settings['disableCustomFontSizes'] = $settings['__experimentalFeatures']['typography']['customFontSize'];
$settings['disableCustomFontSizes'] = ! $settings['__experimentalFeatures']['typography']['customFontSize'];
unset( $settings['__experimentalFeatures']['typography']['customFontSize'] );
}
if ( isset( $settings['__experimentalFeatures']['typography']['customLineHeight'] ) ) {
Expand Down

0 comments on commit f6e7605

Please sign in to comment.