Skip to content

Commit

Permalink
Add enableCustomSpacing to block editor settings (#29277)
Browse files Browse the repository at this point in the history
This fixes the Spacing control not appearing when global styles are
disabled and enableCustomSpacing is set to true in the post editor
settings.
  • Loading branch information
noisysocks committed Mar 1, 2021
1 parent 2c737fc commit ce7edb7
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function useBlockEditorSettings( settings, hasTemplate ) {

return {
canUseUnfilteredHTML: canUserUseUnfilteredHTML(),
reusableBlocks: select( 'core' ).getEntityRecords(
reusableBlocks: select( coreStore ).getEntityRecords(
'postType',
'wp_block',
/**
Expand All @@ -151,11 +151,11 @@ function useBlockEditorSettings( settings, hasTemplate ) {
() => ( {
...pick( settings, [
'__experimentalBlockDirectory',
'__experimentalBlockPatterns',
'__experimentalBlockPatternCategories',
'__experimentalBlockPatterns',
'__experimentalFeatures',
'__experimentalGlobalStylesUserEntityId',
'__experimentalGlobalStylesBaseStyles',
'__experimentalGlobalStylesUserEntityId',
'__experimentalPreferredStyleVariations',
'__experimentalSetIsInserterOpened',
'alignWide',
Expand All @@ -167,16 +167,17 @@ function useBlockEditorSettings( settings, hasTemplate ) {
'disableCustomColors',
'disableCustomFontSizes',
'disableCustomGradients',
'enableCustomUnits',
'enableCustomLineHeight',
'enableCustomSpacing',
'enableCustomUnits',
'focusMode',
'fontSizes',
'gradients',
'hasFixedToolbar',
'hasReducedUI',
'imageDimensions',
'imageEditing',
'imageSizes',
'imageDimensions',
'isRTL',
'keepCaretInsideBlock',
'maxWidth',
Expand Down

0 comments on commit ce7edb7

Please sign in to comment.