Make WordPress Core


Ignore:
Timestamp:
12/09/2021 03:23:23 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Editor: Add an editor settings flag to enable the new gallery for mobile apps for 5.9.

Currently the WordPress mobile apps rely on the __unstableGalleryWithImageBlocks flag being set in order to enable the new gallery block format.

This commit includes the value in the get_default_block_editor_settings() function in order to ensure that versions of the mobile app >= 18.2 will be able to add and edit gallery blocks in the new format.

Props glendaviesnz, ocean90, hellofromTonya, noisysocks.
Fixes #54583.

File:
1 edited

Legend:

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

    r52313 r52349  
    171171        $settings = get_default_block_editor_settings();
    172172
    173         $this->assertCount( 17, $settings );
     173        $this->assertCount( 18, $settings );
    174174        $this->assertFalse( $settings['alignWide'] );
    175175        $this->assertIsArray( $settings['allowedMimeTypes'] );
     
    266266        );
    267267        $this->assertIsInt( $settings['maxUploadFileSize'] );
     268        $this->assertTrue( $settings['__unstableGalleryWithImageBlocks'] );
    268269    }
    269270
Note: See TracChangeset for help on using the changeset viewer.