Make WordPress Core


Ignore:
Timestamp:
06/04/2024 11:53:37 AM (11 months ago)
Author:
ellatrix
Message:

Editor: Add theme.json v3 migrations.

See https://github.com/WordPress/wordpress-develop/pull/6616.
See also the original Gutenberg PRs:

Fixes #61282.

Props ajlende, talldanwp, ramonopoly, ellatrix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-themes-controller.php

    r58282 r58328  
    420420        $this->assertArrayHasKey( 'editor-font-sizes', $theme_supports );
    421421        $this->assertArrayHasKey( 'editor-gradient-presets', $theme_supports );
     422        $this->assertArrayHasKey( 'editor-spacing-sizes', $theme_supports );
    422423        $this->assertArrayHasKey( 'editor-styles', $theme_supports );
    423424        $this->assertArrayHasKey( 'formats', $theme_supports );
     
    427428        $this->assertArrayHasKey( 'title-tag', $theme_supports );
    428429        $this->assertArrayHasKey( 'wp-block-styles', $theme_supports );
    429         $this->assertCount( 23, $theme_supports, 'There should be 23 theme supports' );
     430        $this->assertCount( 24, $theme_supports, 'There should be 23 theme supports' );
    430431    }
    431432
Note: See TracChangeset for help on using the changeset viewer.