Licensing and Update API Improvements#1682
Merged
Merged
Conversation
jakejackson1
force-pushed
the
hot-patch-6.16.0-updater
branch
from
July 23, 2026 07:54
2547301 to
5bfc483
Compare
Brings the api.gravitypdf.com plugin updater and license management to 6.16.0 (squash of the hot-patch-6.16.0-updater branch): - Migrate the plugin/add-on updater to the api.gravitypdf.com endpoint and backport the license settings overhaul plus the GPDF_LICENSE_KEY constant. - On network-activated Multisite, restrict license/update API checks to the primary site and hide the license notice + License tab on secondary sites. - Share a licensed add-on package across per-site Multisite installs via a network cache, with a self-rescheduling network update check and a 3-day package TTL, so unlicensed and primary sites still see and can install the update. - Harden the updater: guard the bulk updater against object injection, request storms and null add-ons; redact log secrets; surface license deactivation transport failures; retry a stuck hardcoded-license activation; and prevent fatals on non-canonical builds and the API-down details view. - Expand multisite test coverage and isolate the tests from subsite-install global pollution. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
jakejackson1
force-pushed
the
hot-patch-6.16.0-updater
branch
from
July 23, 2026 22:55
a3cab08 to
ec8fa59
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Backports the Licensing and Update API work to the 6.16.0 hot-patch line so Gravity PDF works fully against the new
api.gravitypdf.comserver. The API URL was already switched, but update checks and license activation still used the legacyedd_actionflow the new server no longer matches. This branch migrates the updater and license handling, addsGPDF_LICENSE_KEYsupport, makes the API traffic Multisite-safe, and redacts secrets from the debug log.Squashed into a single commit on top of
hot-patch-6.16.0.What's included
Plugin updater
EDD_SL_Plugin_Updaterwith the rewritten, self-contained updater (get_versionAPI,standardize_api_response,gpdf_sl_*cache keys, Multisite changelog / update-notice support)init(),wp_overrideon force-check, expose the updater viaHelper_Data, log the decoded JSON API responseedd_sl_*update cache and the 6.15.0 failed-request backoff optionLicense settings +
GPDF_LICENSE_KEYconstantHelper_Abstract_Addon) + bulk license verificationGPDF_LICENSE_KEYPHP constant (auto-activation; settings field locked read-only when set)Model_Settings,Controller_Settings,licence-infoview,setupLicenseDeactivation.js)gpdf_sl_net_*cache)Multisite: restrict API checks to the primary site
GPDF_LICENSE_KEYmakes every subsite hit the API with the same key)Helper_Misc::is_secondary_network_site()reads theactive_sitewide_pluginsnetwork option, so it's safe in cron / front-end whereis_plugin_active_for_network()isn't loadedupdate_pluginstransient the primary site populatesLog redaction
Redact_Processor(Monolog) masks license keys, signed update / package URLs, tokens, cookies and nonces in the debug log — key-based (recursing into context arrays / objects) plus pattern-scrubbing of message bodies and string leaves, with CRLF / control-char neutralisation to prevent log injectionPost-review hardening (from an expert review of the initial implementation)
plugins_apiand cached data)set-cookieto the deny setScope notes
@sincemarkers and the upgrade-routine version gate are set to 6.16.0.setupLicenseDeactivation.jsis a source change — the built asset needs regenerating at release (yarn build).Testing
Automated (PHPUnit, wp-env)
Live / manual — run against production
api.gravitypdf.comon a subdirectory Multisite (5 sites, GF 2.10.5), with GF logging on to verify redaction:valid✓[redacted]; the raw key never appears in plaintext across the full activate → deactivate lifecycle ✓GPDF_LICENSE_KEYconstant — auto-activates covered add-ons, fields read-only, correct "not valid for this product" on an uncovered add-on ✓is_plugin_active_for_networkfatal) and cron runs clean;is_secondary_network_siteskips secondaries / runs on the primary; License tab hidden on secondary sites ✓gpdf_sl_net_*cache and the PDF folder structure; deactivation clears all scheduledgfpdf_*cron events ✓Checklist
🤖 Generated with Claude Code