| @@ -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); |