=== Core Version Switcher by Volade ===
Contributors: volade
Tags: wordpress, downgrade, upgrade, core, version
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Pin WordPress to any core version — upgrade or downgrade via Dashboard → Updates. Modern fork of the abandoned WP Downgrade plugin.

== Description ==

**Core Version Switcher by Volade** lets you target a specific WordPress core version and run the native **Reinstall** flow from **Dashboard → Updates** — the same technique used by the popular (but abandoned) WP Downgrade plugin, hardened for PHP 8.x and WordPress 6.7+.

**Key features:**

* Pin any semver WordPress release (upgrade or downgrade)
* Uses the official WordPress updater — no manual FTP
* Locale-aware packages from downloads.wordpress.org
* ZIP preflight check before you switch
* Clear safety warnings (backup, database schema, PHP compatibility, security)
* Version picker with wordpress.org stable-check API (latest / outdated badges)
* Quick picks: previous patch, rollback to last known, latest WP, latest in major
* Security status per target (latest, outdated, insecure)
* Diagnostics panel (updater lock, hosting MU-plugins, ZIP preflight, PHP estimate)
* Block automatic core updates while pinned
* Package locale override (fr_FR, de_DE…)
* WP-CLI: `wp cvs status`, `wp cvs target`, `wp cvs update`, `wp cvs rollback`, `wp cvs clear`
* Plugin & theme preflight (Tested up to / Requires at least)
* Checksum spot-check after switch (wordpress.org API)
* Package type: full or no-content ZIP
* Pin expiry (auto-clear after N days)
* Email admin after successful switch
* Dashboard widget + admin bar pin badge
* Site Health test for active pin
* JSON import/export (free, no account)
* Switch log (10 entries free, 50 with V+ Premium)

= No account (free) =

* Set a target core version — **no account required**
* ZIP existence check on wordpress.org
* Safety checklist in the admin UI
* Settings under **Settings → Core Version**

= Free Volade account =

* JSON export / import of settings
* Volade ecosystem: catalog, missions, XP

= V+ Premium =

* Custom download URL (wordpress.org hosts only)
* Auto-clear target after successful switch
* Switch audit log (last 50 events)

== Installation ==

1. Upload `core-version-switcher-by-volade` (with `volade-sdk/` included) to `/wp-content/plugins/`
2. Activate the plugin
3. Open **Settings → Core Version** (or **Volade → Core Version** when the SDK menu is active)
4. Enter the target WordPress version (e.g. `6.4.3`)
5. Go to **Dashboard → Updates** and click **Reinstall** when prompted

== Frequently Asked Questions ==

= Does this replace core files directly? =

No. It adjusts the core update transient so WordPress offers your target version on the Updates screen. You still click Reinstall — the same as a normal core update.

= Is downgrading safe? =

Only with a full backup. The database is **not** rolled back. Older WordPress versions may be incompatible with your PHP version or plugins, and may include unpatched security issues.

= Can I migrate from WP Downgrade? =

Yes. On activation, existing `wpdg_*` options are imported automatically.

== Changelog ==

= 1.0.0 =
* Initial release — fork of WP Downgrade with version picker, quick presets, security badges, plugin preflight, checksums, diagnostics, WP-CLI, multisite network, JSON export/import, widget, Site Health, Volade SDK, PHP 8.x guards, migration from WP Downgrade.
