Фикс: убивались другие фигуры

This commit is contained in:
ifraimka1 committed 2025-03-24 18:33:36 +03:00
1 parent 41c7ce93af
commit ce924a4010
1 file changed
+3 -1
+3 -1
View File
@@ -28,7 +28,9 @@ function parseContent(str) {
if (typeof current === 'string') continue;
if (current.type === "figure") {
const currentElClasses = current.props.className;
if (current.type === "figure" && currentElClasses.includes('wp-block-image')) {
temp.push(current.props.children.props.src); // Добавляем элемент в temp
} else {
if (temp.length !== 0) {