Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
22.6
----
* [**] Check required WordPress version to set galleryWithImageBlocks flag [#20736]

22.5
-----
* [*] [Jetpack-only] Reader: Fix the display of the followed topics in the filter sheet when they're written in non-latin languages. [#20702]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ extension BlockEditorSettings: GutenbergEditorSettings {
}

public var galleryWithImageBlocks: Bool {
return experimentalFeature(.galleryWithImageBlocks)
// If site is using WP 5.9+ then return true as galleryWithImageBlocks is supported in WP 5.9+.
// Once support for WP 5.8 is dropped, this can be removed.
// https://github.com/WordPress/gutenberg/issues/47782
if blog.hasRequiredWordPressVersion("5.9") {
return true
} else {
return experimentalFeature(.galleryWithImageBlocks)
}
}

public var quoteBlockV2: Bool {
Expand Down