PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
← All changes | src/AutoLaunch/hooks/useCreateSite.js +9 -1 3.2.03.2.1 View file →
@@ -41,8 +41,9 @@
41 41 alreadyActive,
42 42 ensurePluginsActive,
43 43 getActivePlugins,
44 44 replacePlaceholderPatterns,
45 + reportFailedDependencies,
45 46 reportInactivePlugins,
46 47 } from '@auto-launch/functions/plugins';
47 48 import {
48 49 postLaunchFunctions,
@@ -459,9 +460,15 @@
459 460 p.patternTypes?.includes('hero-header'),
460 461 );
461 462 const pMatch = heroPattern?.code?.match(/<p[^>]*>([\s\S]*?)<\/p>/);
462 463 const heroDesc = pMatch?.[1]?.replace(/<[^>]+>/g, '').trim();
463 - setData('heroDescription', heroDesc || data.heroDescription);
464 + const heroDescription = heroDesc || data.heroDescription;
465 + setData('heroDescription', heroDescription);
466 + if (heroDescription) {
467 + await updateOption('extendify_hero_description', heroDescription).catch(
468 + () => null,
469 + );
470 + }
464 471
465 472 const createdPagesWP = await createWpPages(customPages, {
466 473 skipSectionIds: isSinglePageDesign,
467 474 });
@@ -605,8 +612,9 @@
605 612 // translators: this is for a action log UI. Keep it short
606 613 addStatusMessage(launchStrings().statusDone);
607 614 await Promise.all([
608 615 reportInactivePlugins(intendedPlugins).catch(() => null),
616 + reportFailedDependencies(pagesReplaced),
609 617 checkIn({ stage: 'finished', siteProfile, sitePlugins, siteStyle }),
610 618 ]);
611 619 setWarnOnReload(false);
612 620 setDone(true);