v3.1.2
This commit is contained in:
parent
dbccd5fb07
commit
ce09aa77e5
1 changed files with 168 additions and 28 deletions
|
|
@ -1,5 +1,43 @@
|
|||
== Changelog ==
|
||||
|
||||
= 3.1.2 [2026-08-10] =
|
||||
|
||||
Audit-driven maintenance release.
|
||||
|
||||
**Security**
|
||||
|
||||
* Fixed the composer-audit gate in `bin/preflight.sh`. The previous version grepped for "security vulnerability advisory" (singular), which never matched Composer's actual output "security vulnerability advisories" (plural) — the y→i pluralization change silently disabled CVE detection, green-lighting every release regardless of known vulnerabilities. The gate now uses Composer's bitmask exit code (bit 0 = security), which is immune to wording changes.
|
||||
* Bumped `squizlabs/php_codesniffer` to ^3.13.6 and `wp-coding-standards/wpcs` to ^3.4.1, fixing CVE-2026-67434 (OS command injection) and CVE-2026-45293 (arbitrary code execution) in the development tooling. These are dev-only dependencies and were never shipped in the release ZIP.
|
||||
|
||||
**Fixed**
|
||||
|
||||
* Nested `<form>` elements on the settings page. The "Apply Recommended Defaults" form was physically nested inside the main settings form — HTML5 forbids this, and the stray `</form>` could close the main form early, orphaning the "Save Changes" button and all directive checkboxes. The apply-suggestions form is now a standalone sibling rendered before the main form.
|
||||
* Meta-box "Effective Directives" reference panel now reads from the consolidated `noindex_seo_settings` option via `noindex_seo_get_setting()` instead of the stale legacy individual options that may diverge after a settings save.
|
||||
|
||||
**Added**
|
||||
|
||||
* `load_plugin_textdomain('noindex-seo')` hooked on `init`. The plugin ships `.mo` files for Catalan and Spanish (es_ES) in `languages/`, but without this call WordPress only loaded translations from `wp-content/languages/plugins/` — the bundled translations were effectively dead code.
|
||||
* PHPUnit coverage measurement in `bin/preflight.sh` (requires Xdebug). Enforces a 25% regression floor against the current 26.64% baseline; the AGENTS target remains 80%.
|
||||
* `<coverage>` configuration in `phpunit.xml` so `--coverage-text` produces a report.
|
||||
* `README.md` for developer and contributor onboarding.
|
||||
* `tests/wp-tests-config.sample.php` template. The real `tests/wp-tests-config.php` is now gitignored and reads from environment variables.
|
||||
|
||||
**Changed**
|
||||
|
||||
* Pinned all remaining wildcard `"*"` dev dependencies to caret constraints in `composer.json` (`phpcsutils` ^1.2, `php-compatibility` ^9.3, `dealerdirect/phpcodesniffer-composer-installer` ^1.2). Unpinned ranges were how the CVE-affected versions were resolved.
|
||||
* Lowered `phpstan.neon` `phpVersion` from 80500 (PHP 8.5) to 80200 (PHP 8.2) so PHPStan flags any accidental use of PHP 8.3+ syntax that would break on the development floor.
|
||||
* Refreshed `CLAUDE.md` to reflect 3.1.x reality (version, line count, v3 consolidated storage model, four-priority output logic, current 8-file test suite). Documented the uninstall direct-DB exception.
|
||||
* Updated `TODO.md` to mark shipped items (#1–#4).
|
||||
|
||||
**Compatibility**
|
||||
|
||||
* WordPress: 5.7 - 7.1
|
||||
* PHP: 7.2 - 8.5
|
||||
|
||||
**Tests**
|
||||
|
||||
* 71 tests, 385 assertions — all passing. Coverage measured at 26.64% (471/1768 lines).
|
||||
|
||||
= 3.1.1 [2026-07-18] =
|
||||
|
||||
**Security**
|
||||
|
|
|
|||
Loading…
Reference in a new issue