Skip to content

Commit 14822b0

Browse files
committed
update dev note
1 parent 253e8c4 commit 14822b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/use-preset-controls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const usePresetControls = property => {
4242
* Dev note:
4343
* Starting from theme.json version 3, settings such as `typography.defaultFontSizes` and `spacing.defaultSpacingSizes`
4444
* must be set to `false` to override the default presets. If these settings are not found in the theme.json, they default to `true`.
45-
* Otherwise, themes that use the same slugs as the defaults will continue to use the default presets.
45+
* Themes that use the same slugs as the defaults will continue to use the default presets.
4646
* Therefore, we also need to get the default presets if the `defaultSizesEnabled` is `true` and merge it with the theme presets.
4747
*
4848
* https://make.wordpress.org/core/2024/06/19/theme-json-version-3/#:~:text=Breaking%20changes%20in%20version%203

0 commit comments

Comments
 (0)