Repository navigation
Releases: snapshotinteractive/wp-snapshot-core
Releases · snapshotinteractive/wp-snapshot-core
Release list
Snapshot Core 2.0.0
Snapshot Core is now a WordPress plugin, released from
snapshotinteractive/wp-snapshot-core
and updated from the Plugins screen. This is a major release: the theme changes below are
required.
- Plugin:
snapshot-core.phpwith a plugin header andUpdate URI, so every installed
copy gets Update now and auto-updates from the public GitHub releases. Each copy only
offers versions within its own major (updates/<major>.json) and links to the upgrade
notes when a new major is out.SNAPSHOT_CORE_UPDATESfalse turns the check off. - Licence: GPL-2.0-or-later, without warranty. Updates are free for every site.
- Bundled libraries (bacon-qr-code, zxcvbn-php, WebAuthn, otphp and their dependencies)
are prefixed underSnapshot\Vendor\, so they never clash with another plugin's copy.
Acorn now comes from the theme and is no longer a requirement of the package. - Assets: the admin, sign in and editor CSS and JS are built with the plugin (
build/)
instead of by the theme's Vite. The theme'stokens.cssstill brands them: its@theme
values are printed as CSS variables after the plugin's styles (filter
snap/core/tokens_path).Core::assets()andCore::asset()replace
Vite::withEntryPoints(Core::entries(...));Core::base(),entry()andentries()
are gone, andCore::path()andCore::url()now resolve inside the plugin. - The block page (
security/blocked) loads its stylesheet from the plugin; it pointed at
an entry the theme never built. - File integrity: the release zip carries its own
security-manifest.json, and the scan
checks the plugin against it (plugin.modified,plugin.unknown) instead of asking
WordPress.org. Plugins whoseUpdate URIpoints elsewhere are no longer looked up on
WordPress.org at all. - Snapshot → Status shows the plugin version from its header and a snapshot-core assets
check. - Admin notices when the plugin is active but the theme does not load it, or when the
plugin was installed from source without its built files.
Upgrading a site from 1.x
- Install the 2.0.0 release zip under Plugins and activate it. The 1.x theme keeps
working on it in the meantime. - In the theme's
composer.json, remove thesnapshotinteractive/snapshot-core
requirement and its repository entry, thencomposer update snapshotinteractive/snapshot-core. functions.php: wrapCore::load(...)andCore::boot()inclass_exists(Core::class),
as in the starter, so the site renders if the plugin is ever off.vite.config.js: remove thevite.mjsimport,...core.entries,...core.aliasand
preserveSymlinks.bin/acf-check.php,bin/seed-check.php,bin/blade-check.php: read the package
throughbin/core-path.php, as in the starter.- Remove any Dependabot or CI configuration that installed the 1.x package.