Repository navigation
Update dependencies and CI, fix Dependabot alert #1 - #118
Merged
Merged
Conversation
PHP 8.1 changed html_entity_decode()'s default flags from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, so on PHP 7.4 and 8.0 an apostrophe stored as ' in a custom expression, extra call or callback stayed encoded and broke the script. The new flags are passed explicitly through mfbfw_decode_js(), which matches what PHP 8.1+ sites already do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Security fixes for SAFE_FOR_TEMPLATES, IN_PLACE and custom elements; 3.4.x is no longer maintained. The behaviour changes affect DOM input, hooks and IN_PLACE, none of which the lightbox uses: it only sanitizes strings. Both dist files come from the registry tarball (sha512 verified) with their sourceMappingURL comments removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clean-css-cli has not been released since 2023 and brought chokidar, glob 7 and brace-expansion along for file watching and wildcards this project never used; the brace-expansion ReDoS was Dependabot alert #1. bin/minify-css.mjs calls the library directly and its output is byte-identical. The dev tree drops from 41 packages to 13, terser moves to 5.51.4 (same output), and engines.node to >=22 now that 18 and 20 are EOL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9.3.5 has no knowledge of PHP 8, so composer phpcs did not actually check 7.4-8.x compatibility. 10.0 is only out as an alpha, pulled in with @Alpha flags; it found the html_entity_decode() default change fixed above. PHP_CodeSniffer stays on 3.13 because WPCS 3.4.1 does not support 4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
checkout, setup-node and upload-artifact move to v7 and Node 20 (EOL) to the current LTS. PHP 8.6.0 joins the lint matrix and phpcs runs on 8.5. A new push to a PR cancels the previous run. Dependabot opens weekly grouped update PRs for npm, Composer and Actions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Releases reach WordPress.org through a manual SVN commit, so the deploy job failed at its credentials step on every tag push. It now runs only when the WPORG_SVN_DEPLOY variable is true; the pre-flight still runs on every tag. The new daily "WordPress.org matches git" workflow rebuilds the served version from its tag and compares it file by file with the WordPress.org download and the GitHub release asset, the drift behind 3.3.7 and 3.4.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ WordPress Plugin Check Report
📊 ReportAll checks passed! No errors or warnings found. 🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check |
Merged
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.
Resolves Dependabot alert #1 (
brace-expansionReDoS), brings every dependency to its latest usable version and tightens CI and the release workflow. No version bump. The two shipped changes (DOMPurify and the PHP fix) ride in the next release.Shipped in the plugin
IN_PLACEand custom elements in SVG. The lightbox sanitizes strings only. The tarball's sha512 matches the registry, and thesourceMappingURLcomments are stripped as before.html_entity_decode()'s default flags. On PHP 7.4 and 8.0, an apostrophe stored as'in a custom expression, extra call or callback stayed encoded and broke the script.mfbfw_decode_js()passes the PHP 8.1+ flags explicitly, so 8.1+ sites see no change. The feature is no wider: the save-timeunfiltered_htmlgate is untouched.Build tooling
clean-css-cliis replaced by theclean-csslibrary throughbin/minify-css.mjs, and the output is byte-identical. The CLI hasn't been released since 2023. It brought inchokidar,glob7 andbrace-expansionfor file watching and wildcards this project never used. The dev tree drops from 41 packages to 13, andnpm auditreports 0 vulnerabilities.terser5.49 → 5.51.4.jquery.fancybox.min.jsbuilds byte-identical.engines.nodeis now>=22.composer phpcswasn't really checking PHP 8 compatibility. The alpha found thehtml_entity_decode()issue above. PHP_CodeSniffer stays on 3.13.6 because WPCS 3.4.1 doesn't support 4 yet.CI and releases
checkout,setup-nodeandupload-artifactmove to v7. Node 20, which is EOL, becomeslts/*.WPORG_SVN_DEPLOYrepository variable. Releases go to SVN by hand, so every tag push failed at the credentials step. The pre-flight still runs on every tag.bin/verify-release.mjs, alsonpm run verify:release, rebuilds the version WordPress.org serves from its git tag. It then compares that build file by file with the WordPress.org download and the GitHub release asset. This is the drift behind 3.3.7 and 3.4.1. Locally:Tested up to: 7.2SVN edit, as it should.Verification
'and&runs correctly.npm run release:check,composer phpcswith PHPCompatibility 10,composer validateand actionlint all pass.🤖 Generated with Claude Code