mirror of
git://develop.git.wordpress.org/
synced 2025-03-23 21:39:50 +01:00
The `get_post_galleries()` function only handled galleries from the `[gallery]` shortcode. It did not process gallery blocks. Introducing v1 and v2 gallery block support in `get_post_galleries()` including support for innerblock nesting. There are no changes to how the function is called. It detects if the post content has one or more gallery blocks. If detected, it parses the blocks and then processes to add each gallery block's HTML to the array of galleries before being passed through the filter and returned. Includes integration tests. Follow-up to [24682], [43309], [48262], [52042]. Props glendaviesnz, costdev, antpb, audrasjb, birgire, celloexpressions, desrosj, hellofromTonya, jeffpaul, lynk, pento, ramonopoly, russhylov, takahashi_fumiki, tellyworth. Fixes #43826. git-svn-id: https://develop.svn.wordpress.org/trunk@52190 602fd350-edb4-49c9-b593-d223f7449a82