feat: Divi tools write library entries; global ones with dry run, confirm and backup (E2, F2)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
if (! class_exists('ET_Core_PageResource')) {
|
||||
/**
|
||||
* Divi's static CSS cache for the saver tests: records every remove_static_resources() call.
|
||||
*/
|
||||
class ET_Core_PageResource
|
||||
{
|
||||
/** @var list<array{0: int|string, 1: string, 2: bool}> */
|
||||
public static array $removed = [];
|
||||
|
||||
public static function remove_static_resources($postId, $owner, $force = false): void
|
||||
{
|
||||
self::$removed[] = [$postId, $owner, (bool) $force];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user