Make WordPress Core


Ignore:
Timestamp:
11/08/2021 02:26:27 PM (3 years ago)
Author:
youknowriad
Message:

Block Editor: Update the WordPress Packages based on Gutenberg 11.9 RC1.

This brings the JS packages up to date and is the first step that will allow us
to include the other block editor updates for WordPress 5.9:
FSE infrastrucutre, site editor and global styles.

Props noisysocks.
See #54337.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/blocks/editor.php

    r52010 r52042  
    171171        $settings = get_default_block_editor_settings();
    172172
    173         $this->assertCount( 16, $settings );
     173        $this->assertCount( 17, $settings );
    174174        $this->assertFalse( $settings['alignWide'] );
    175175        $this->assertIsArray( $settings['allowedMimeTypes'] );
     
    494494        $this->assertStringContainsString( '"\/wp\/v2\/types"', $after );
    495495    }
    496 
    497     /**
    498      * @ticket 53344
    499      */
    500     public function test_get_block_editor_theme_styles() {
    501         $theme_styles = get_block_editor_theme_styles();
    502         $this->assertCount( 1, $theme_styles );
    503         $this->assertSameSets(
    504             array(
    505                 'css'            => 'body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif }',
    506                 '__unstableType' => 'core',
    507             ),
    508             $theme_styles[0]
    509         );
    510     }
    511496}
Note: See TracChangeset for help on using the changeset viewer.