chore: 2.2.1 — WordPress.org-compliant build#33
Merged
Conversation
Prepares the plugin for WordPress.org submission (directory guidelines forbid self-updating and flag unexplained minified JS). - Extract the self-hosted updater into includes/class-webdecoy-updater.php, required only under WEBDECOY_SELF_HOSTED + file_exists (behavior-identical for CDN builds). - build.sh --org: produces webdecoy-<v>-wporg.zip that strips the self-updater and the bundled clearance client, and drops CDN release tooling. Verified: no update-override hooks, no cdn.webdecoy.com refs, no minified clearance bundle in the .org zip; CDN build still includes both. - Bundle Chart.js locally (admin/js/vendor/chart.umd.min.js v4.4.9) instead of loading from jsDelivr; enqueue points at the local copy. Plugin now makes zero external requests until a WebDecoy Cloud account is connected. - readme.txt: accurate External Services disclosure (removed the stale jsDelivr claim; documented the opt-in cloud endpoints, data, TOS/privacy). - Clearance enqueue no-ops when the bundle is absent (clean .org degradation). - Bump to 2.2.1; RELEASING.md documents the two-build process.
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.
Prepares the plugin to pass WordPress.org review (first-time submission).
Review blockers fixed
includes/class-webdecoy-updater.php, loaded only underWEBDECOY_SELF_HOSTED+file_exists().build.sh --orgomits the file, so the .org build has no update-override hooks. CDN builds keep it (behavior-identical).admin/js/vendor/chart.umd.min.jsv4.4.9). The plugin makes zero external requests until a WebDecoy Cloud account is connected.Two builds, one codebase
./build.sh 2.2.1→ CDN/self-hosted zip (updater + clearance included)./build.sh 2.2.1 --org→webdecoy-2.2.1-wporg.zipfor WordPress.org (both stripped)Verified the .org zip contains no self-update hooks, no
cdn.webdecoy.comrefs, no clearance bundle, tests excluded, Chart.js local; the CDN zip still includes everything. Bumped to 2.2.1 (Chart.js-local is a user-visible change). Full test suite green (41).