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

WordPress Trac noreply at wordpress.org
Sun Nov 4 14:57:25 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 Takahashi_Fumiki):

 I added a patch above.

 - Avoid quick return with checking shortcode existence.
 - Add gut block parser.

 == Questions

 - I think this needs new tests because no test case for block format
 strings.
 - if `$html` attribute is true, simply added block content html. But this
 output html is apparently different from former shortcode empowered
 gallery html.
 - I'm afraid that there might be php gutenberg parser in core.

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


More information about the wp-trac mailing list