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

WordPress Trac noreply at wordpress.org
Mon Nov 5 03:23:20 UTC 2018


#43826: get_post_galleries() should return gallery blocks
------------------------------------------+---------------------
 Reporter:  pento                         |       Owner:  (none)
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  5.0
Component:  Media                         |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+---------------------

Comment (by pento):

 Thank you for the patch, @Takahashi_Fumiki!

 There's actually already a block parser in Core, as @birgire mentioned.

 Before continuing, however, it's worth noting that the Gallery Block
 format will be changed before 5.0
 ([https://github.com/WordPress/gutenberg/pull/11212 GB11212]) to store the
 image data in the block attibutes, which will make it available in the
 `parse_blocks()` output.

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


More information about the wp-trac mailing list