WordPress.org

Make WordPress Core

Opened 5 weeks ago

#43826 new enhancement

get_post_galleries() should return gallery blocks

Reported by: pento Owned by:
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: Media Keywords: needs-patch needs-unit-tests
Focuses: Cc:

Description

Originally reported here: https://github.com/WordPress/gutenberg/issues/5797

Galleries in Gutenberg don't use the [gallery] shortcode, so aren't returned by get_post_galleries(). This function should check for gallery blocks, too.

Change History (0)

Note: See TracTickets for help on using tickets.