Skip to content
DE

Copy runtime/deckerweb-github-release-updater-v2.php into the host. Register after host translations initialize, usually on init. Keep the stable plugin directory and main filename. Set the host Update URI to the exact configured https://github.com/OWNER/REPOSITORY URL without a trailing slash.

$updater_class = require __DIR__ . '/deckerweb-github-release-updater-v2.php';
$updater = new $updater_class($main_file, $repository, $name, $description, $artwork, $options);
$updater->register();

Use the class returned by require, including on repeated includes. Do not select the legacy V2 alias with class_exists or use the boolean return from repeated require_once. The release-specific implementation is Runtime_2_4_0; the stable V2 authentication interface and old aliases remain compatible. Another plugin’s earlier runtime and hooks are not replaced.

Normal updates are independent of the catalog

Section titled “Normal updates are independent of the catalog”

The updater resolves normal installed-plugin releases directly through GitHub and WordPress. Library online/offline settings, older catalog versions, withdrawal from the discovery catalog and catalog errors cannot limit normal update offers or packages. This separation is intentional; catalog installation approval no longer authorizes an installed-plugin update.

The Library owns discovery, catalog metadata and first installation of its approved packages. Its installed-version status and Update button must use the existing Core update offer and native update flow. Merely viewing the Library must not cause extra GitHub requests. Public normal downloads use Core; private downloads use the same update engine with repository-bound authentication and bounded transport. No private authentication or actual candidate checks are bypassed.

Existing adapters may still pass release_provider, package_provider, diagnostic_provider and package_cleanup options. Version 2.4.0 intentionally does not invoke or retain these obsolete callbacks, even when they return null, false, outdated data or exceptions. Their values do not affect normal updates. No per-plugin cleanup callback or package lease is needed. Library first-install files remain the Library’s responsibility; ordinary Core/public and updater/private temporary files follow their own download cleanup paths.

UPDATES_INDEPENDENT_OF_CATALOG is true. SUPPORTS_CATALOG_PROVIDER remains true only so old host guards continue accepting their adapter options; it no longer selects a catalog updater. Catalog diagnostics and normalized-catalog-package capabilities are false. New integrations should pass only active options, not depend on this deprecated guard. examples/catalog-provider.php returns an empty compatibility option array.

New updater with an old Library/helper: old catalog callbacks are ignored centrally. Existing global Library hooks must pass through plugins owned by their exact Update URI. Library 1.3.0 with an old updater: its compatibility release method must explicitly return false to select that old engine’s known direct mode, regardless of catalog state. This is an authorized policy transition, not a general rule to reinterpret arbitrary denial as direct download.

Use both aligned component versions for the supported configuration. A published component does not rewrite embedded old copies or live instances. An unchanged installation containing only old components is not automatically repaired. Old source-selection validators and activation workflows must still be reviewed in the consuming host.

The runtime validates actual extracted headers before moving a source directory or replacing installed code. Raw Plugin Name must match the installed name. Both Text Domain headers must match the stable slug; installed and candidate Update URI must equal the configured repository. Version must equal the exact release bound to this download or the exact matching Core offer and must be newer than installed. Actual Requires at least and Requires PHP are mandatory numeric versions and must fit the running platform. Main files above 1 MiB are rejected; header parsing reads the first 8 KiB. Candidate PHP is never executed for validation.

Checks apply to single, bulk and programmatic automatic update contexts, including Core bulk metadata that omits type/action. Keep any additional host validators and existing activation lifecycle. Deliberate renames and headerless legacy plugins need a separately reviewed migration. The runtime does not activate plugins, schedule automatic updates or claim complete active-plugin fatal-error rollback.

Host translations, artwork and private authentication

Section titled “Host translations, artwork and private authentication”

Use examples/host-translations.php with the host’s literal textdomain, merge host-strings into its Du/Sie catalogs, and compile host MO files. No separate component domain is loaded. Translation occurs in the active locale at output time; tokens and translated UI text are not persisted in metadata caches. Some old catalog strings remain in the merge template for translation compatibility; the new engine does not emit catalog diagnostics.

Pass the existing bundled icons/banners using artwork: icons svg/1x/2x/default, banners low/high. Preserve host changelog and documentation links. The constructor’s other active options are private, auth, translate, private_download_limit and private_download_budget.

Private mode defaults to 20 MiB and 60 seconds for the full redirect chain, at most four requests and 30 seconds per request. Limits accept 1 KiB–100 MiB and 1–120 seconds. Streams are limited to maximum plus one byte and checked afterwards for regular file type, actual bytes, Content-Length and elapsed budget. Decompression is disabled. Failed private downloads delete their own file. Local PHP filters/transports or process termination are outside an absolute resource/cleanup guarantee.

Credentials are installed server-side, scoped to the required repository, never distributed in plugin code, ZIPs, Git or URLs. See authentication. Preserve existing PHP 8.1 and host-specific WordPress requirements; higher host requirements remain authoritative.

A normal Core offer may use the exact public GitHub source archive instead of the preferred release asset when GitHub release metadata attests that archive for the actual release tag. The installed plugin key, requested package and offered version must match exactly. The tag prefix is not guessed: v1.2.0 and 1.2.0 are different refs unless the metadata actually selects that ref. Branches, other tags/repos, URL credentials, queries and fragments are not accepted as equivalents. Private mode gains no alternative-package permission. Actual candidate checks remain mandatory. A conflicting Core version also rejects the preferred asset.


Imported from the published component 2.4.0. Original source · Deutsch