define('VELOCITYFORGE_PANIC', true);in wp-config.php — checked before any database read, so it works even when the database is the problem.?velocityforge_panic=on any URL — flips Safe Mode and rotates the secret. The secret is stored in an option and shown on the Rollback screen: copy the URL somewhere outside the site before you need it. It is never written to a file in wp-content.- The Safe Mode toggle — on the Rollback screen, and in the admin bar, on the front end as well as in wp-admin. It goes through
VELOCITYFORGE_Rollback_Manager::toggle_safe_mode(), so it lands in the same audit trail as the form, and it is nonce-protected andmanage_options-only.
- whether
VELOCITYFORGE_PANICis defined right now (informational — there is nothing to write, so it cannot fail); - a real loopback request to the secret panic route with a one-off secret, because a wrong token would only prove the 403 branch works. The safe-mode option and the real secret are captured beforehand and written back exactly afterwards, whatever the response was;
- the safe-mode option round-trips: read, flip, read back, restore;
- the autoload backups table answers a SELECT, row or no row.