Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
20 lines
528 B
PHP
20 lines
528 B
PHP
<?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];
|
|
}
|
|
}
|
|
}
|