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

WordPress Trac noreply at wordpress.org
Thu Nov 11 04:19:10 UTC 2021


#43826: get_post_galleries() should return gallery blocks
-------------------------------------------------+-------------------------
 Reporter:  pento                                |       Owner:
                                                 |  hellofromTonya
     Type:  task (blessed)                       |      Status:  reviewing
 Priority:  normal                               |   Milestone:  5.9
Component:  Media                                |     Version:  5.0
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing has-patch has-unit-    |     Focuses:  template
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by glendaviesnz):

 To test the
 https://a8c.slack.com/archives/C7YPUHBB2/p1636602947305000?thread_ts=1636417237.235700&cid=C7YPUHBB2:

 Apply the patch to a 5.9 build in local wp dev env

 5.9 includes the version of Gutenberg needed (11.9) so no need for plugin

 Install the Arbutus theme https://wordpress.org/themes/arbutus/ and
 activate it

 Add a post with v1 version of the gallery blocks - to do this set the
 `use_balanceTags` option to 1, eg. `wp option set use_balanceTags 1`. With
 this set add a new post of type Gallery, add a gallery block to it and
 check that it is v1 block - you can tell by clicking on an image in the
 gallery and seeing that it is the move icons within the image

 Once you have a gallery post with a v1 gallery block set `wp option set
 use_balanceTags 0` and add a new gallery post with a v2 gallery block -
 you can tell it is v2 by selecting an individual image and it will have
 its own block tool bar with image editing, duotone, etc

 Add a third gallery post with a gallery short code. You can do this by
 adding a Classic block, and using the media option in the classic block
 toolbar to add a gallery

 Visit the site homepage and all three types of gallery should display a
 gallery excerpt as below:

 [[Image(https://user-images.githubusercontent.com/3629020/138993311
 -71de119d-cba5-42c1-b165-d03c7fadbc70.png)]]

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


More information about the wp-trac mailing list