feat: lit-site-status, Admin-Tab und Admin-Hinweis zeigen Divi-Fähigkeiten mit Zustand, Quelle, Problemen und betroffenen Werkzeugen
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
b92545a8fe
commit
2aef6e1154
+10
-2
@@ -131,9 +131,15 @@ final class Plugin
|
||||
Limits $limits,
|
||||
ToolAvailability $tools
|
||||
): IntegrationRegistry {
|
||||
$divi = new DiviIntegration($schema, $changeLog, $tools);
|
||||
// E3: lit-site-status and the Divi tab name the tools each feature affects; the registry exists only after
|
||||
// the Divi integration, so it is asked at call time.
|
||||
$registry = null;
|
||||
$allAbilities = static function () use (&$registry): array {
|
||||
return $registry instanceof IntegrationRegistry ? $registry->abilities() : [];
|
||||
};
|
||||
$divi = new DiviIntegration($schema, $changeLog, $tools, $allAbilities);
|
||||
|
||||
return new IntegrationRegistry(
|
||||
$registry = new IntegrationRegistry(
|
||||
new CoreIntegration(self::pluginDir() . '/docs/guides', [$divi->environmentComponent()]),
|
||||
new WordPressIntegration(
|
||||
$schema,
|
||||
@@ -147,6 +153,8 @@ final class Plugin
|
||||
$divi->library(),
|
||||
$divi->themeBuilder()
|
||||
);
|
||||
|
||||
return $registry;
|
||||
}
|
||||
|
||||
public static function settingsPage(): ?SettingsPage
|
||||
|
||||
Reference in New Issue
Block a user