-
Notifications
You must be signed in to change notification settings - Fork 813
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Carousel: improve detection of containers where we should add data
Fixes #13428 Until now we would rely on 2 str_replace to add Carousel data to div and ul containers in post content. This worked, but wasn't smart enough to know to ignore specific divs like Columns blocks. By using DOMDocument, we can go through the post content in a more readable way, to detect gallery blocks as well as regular galleries and images.
- Loading branch information
Showing
1 changed file
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters