Skip to content

Commit

Permalink
Add more details to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed Apr 17, 2024
1 parent d494c2e commit 930f297
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/class-wp-theme-json-schema-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ private static function migrate_v2_to_v3( $old ) {
* it as it controls the PRESETS_METADATA prevent_override which was
* previously hardcoded to false. This only needs to happen when the
* theme provided font sizes as they could match the default ones and
* affect the generated CSS.
* affect the generated CSS. And in v2 we provided default font sizes
* when the theme did not provide any.
*/
if ( isset( $new['settings']['typography']['fontSizes'] ) ) {
if ( ! isset( $new['settings'] ) ) {
Expand Down

0 comments on commit 930f297

Please sign in to comment.