feat: Divi tools edit Theme Builder layouts; visible layouts need confirm
TB layouts load through ThemeBuilderAccess (P12), live layouts (attached + enabled, Q8) need a dry run and confirm (Q9) and get the shared restore point of VisibleEdits, extracted from GlobalEdits (Q2: backup when revisions are off, P9 refusals, P14 naming). divi/post-content only in body layouts (F22), also for nested stored nodes. SaveScope::ThemeBuilderLayout sets Divi flags and clears site CSS + TB cache. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,7 @@ use LIT\MCP\Integrations\Divi\Pages\DiviSaver;
|
||||
use LIT\MCP\Integrations\Divi\Pages\DiviWriter;
|
||||
use LIT\MCP\Integrations\Divi\Pages\DynamicContentMap;
|
||||
use LIT\MCP\Integrations\Divi\Schema\DiviModules;
|
||||
use LIT\MCP\Integrations\Divi\ThemeBuilder\ThemeBuilderEdits;
|
||||
use Mockery;
|
||||
use Throwable;
|
||||
use WP_Post;
|
||||
@@ -100,7 +101,8 @@ final class DiviWriterFixture
|
||||
array &$failures = [],
|
||||
bool $unfiltered = false,
|
||||
?DiviPageLoader $loader = null,
|
||||
?GlobalEdits $globals = null
|
||||
?GlobalEdits $globals = null,
|
||||
?ThemeBuilderEdits $themeBuilder = null
|
||||
): DiviWriter {
|
||||
$design = self::designReader();
|
||||
|
||||
@@ -110,7 +112,8 @@ final class DiviWriterFixture
|
||||
self::log(),
|
||||
$design,
|
||||
self::composition($design, $unfiltered),
|
||||
$globals
|
||||
$globals,
|
||||
$themeBuilder
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user