ReleaseRecoveryPlugin
Corex\Config\Releases\ReleaseRecoveryPlugin · class · Config layer
The way back that needs no admin (spec 107, plan D9; FR-042). A must-use plugin, written when an installation starts. WordPress loads must-use plugins before ordinary ones, so this runs when the release that was just installed cannot. It uses nothing of CoreX: every path and word it needs is written into it. Asked with the installation’s key, it reads the swap’s journal, moves every folder back, takes the site out of maintenance, and says what it did in plain text. Its text is English and not translated. It is read by whoever is recovering a site whose plugins did not load, and the translations are in one of them.
Public API
Section titled “Public API”__construct(string $mustUseFolder, ReleaseJournal $journal, ReleaseMaintenance $maintenance)
Section titled “__construct(string $mustUseFolder, ReleaseJournal $journal, ReleaseMaintenance $maintenance)”write(string $keyHash): void
Section titled “write(string $keyHash): void”remove(): void
Section titled “remove(): void”isWritten(): bool
Section titled “isWritten(): bool”keyHash(): ?string
Section titled “keyHash(): ?string”The hash of the key the plugin on the site asks for, as it was written into it; null when there is none, or it is not one this class wrote.
link(string $home, string $key): string
Section titled “link(string $home, string $key): string”The address that puts the previous release back.
file(): string
Section titled “file(): string”Where the plugin is on the server, written or not.