[wp-trac] [WordPress Trac] #43826: get_post_galleries() should return gallery blocks

WordPress Trac noreply at wordpress.org
Wed Oct 27 03:12:55 UTC 2021


#43826: get_post_galleries() should return gallery blocks
---------------------------------------+-----------------------------
 Reporter:  pento                      |       Owner:  tellyworth
     Type:  task (blessed)             |      Status:  assigned
 Priority:  normal                     |   Milestone:  Future Release
Component:  Media                      |     Version:  5.0
 Severity:  normal                     |  Resolution:
 Keywords:  needs-patch needs-testing  |     Focuses:  template
---------------------------------------+-----------------------------
Changes (by glendaviesnz):

 * keywords:  needs-testing has-patch => needs-patch needs-testing


Comment:

 Since this was last looked at we now have a new version of the Gallery
 block that is about to be released that uses innerBlocks. I have created a
 PR (https://github.com/WordPress/wordpress-develop/pull/1783) that
 refactors the `get_post_galleries` method to account for both these
 formats, and also splits some of the parsing out to separated methods as
 the nesting was getting a bit deep/complex to account for a second block
 format.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/43826#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list