Skip to content
Corex

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.

__construct(string $mustUseFolder, ReleaseJournal $journal, ReleaseMaintenance $maintenance)

Section titled “__construct(string $mustUseFolder, ReleaseJournal $journal, ReleaseMaintenance $maintenance)”

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.

The address that puts the previous release back.

Where the plugin is on the server, written or not.