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

WordPress Trac noreply at wordpress.org
Thu Nov 22 08:05:52 UTC 2018


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

Comment (by tellyworth):

 attachment:43826.5.diff iterates on the previous patch with two changes:

 * Only `ids` is included in the block attributes returned by
 `get_post_galleries()`
 * `test_mixed_post_galleries_data` tests the behaviour of attributes
 returned from both shortcode and block galleries

 I think that should address the compatibility concern as described in
 comment:12.

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


More information about the wp-trac mailing list