This commit is contained in:
Javier Casares 2026-11-04 17:27:19 +00:00
commit 121c35737d

View file

@ -1,5 +1,47 @@
== Changelog ==
= 1.2.3 =
_Release date: 2026-11-04_
**Highlights**
* Tested up to WordPress 7.2 and PHP 8.6; real minimums re-verified (WordPress 4.2, PHP 8.0)
* Admin menu icon replaced with an inline SVG (WordPress core is moving from the Dashicons font to SVG in 7.2 — Trac #65089 / PR #12270)
* PHPStan raised to level 10 — the maximum — with no baseline
**Security**
* No security findings in this release; `composer audit` clean for both production and dev dependency sets
**Changed**
* Admin menu icon switched from `dashicons-media-document` to a base64 SVG data URI. Core has special-cased `data:image/svg+xml;base64,` menu icons since WordPress 4.2, so the icon renders identically on every supported version and does not depend on the new WordPress-7.2-only `wp_get_icon()` API
* PHPStan static analysis raised from level 9 to level 10 (the maximum, no baseline): the `robotstxt_docmd_input_string()` / `robotstxt_docmd_input_int()` helpers now document their `$input` parameter as `array<mixed>` (superglobals and `get_option()` returns carry no string-key guarantee), `WP_Query::$posts` is type-narrowed with `is_array()` (wordpress-stubs 7.1 types it as nullable), `global $wpdb` is type-narrowed with an `instanceof wpdb` guard, and post-type label output is narrowed to string
* The transient-cleanup queries (debug "Clear All Plugin Caches" and `uninstall.php` prefix deletes) now build LIKE patterns with the `esc_sql( $wpdb->esc_like( ... ) )` chain documented in `wpdb::esc_like()`, instead of `$wpdb->prepare()`. Reason: wordpress-stubs types `wpdb::prepare()`'s query parameter as `literal-string`, which table-name interpolation can never satisfy; the escaping chain offers equivalent safety for bulk prefix deletes. Deliberate, documented exception to the AGENTS-security "prepare() for all custom SQL" checklist item
* `robotstxt_docmd_get_all_mappings()` iterates a narrowed copy of `WP_Query::$posts` (nullable in the WordPress 7.1 stubs)
**Dependencies**
* league/commonmark 2.10.0 → 2.10.7 (production; no known CVEs). phpstan 2.2.9 → 2.3.5, szepeviktor/phpstan-wordpress 2.0.3 → 2.0.4, php-stubs/wordpress-stubs 6.9.4 → 7.1.2, phpunit 9.6.36 → 9.6.38 (dev only)
* Composer platform pin added at `8.0.99` (the declared PHP floor). The unpinned update had promoted nette/schema 1.4.0 (PHP 8.1-only syntax on the Markdown-conversion autoload path) and nette/utils 4.1.6 (PHP 8.2+) into the production vendor tree — a fatal error on PHP 8.0/8.1 sites caught by the 1.2.3 pre-deploy audit (docs/audit-pre-deploy-1.2.3.md). With the pin the resolver ships nette/schema 1.2.5, nette/utils 4.0.11, and symfony/deprecation-contracts 3.0.2 — every shipped package supports PHP 8.0; conversion verified empirically
* `bin/preflight.sh` section 6 now builds the production vendor in a throwaway /tmp copy and fails unless the composer platform pin matches the header's `Requires PHP` and the production vendor installs under that pin
**Compatibility**
* WordPress: 4.2 - 7.2 (floor re-verified with WP-Compat; smoke-tested on WordPress 7.2-beta4 / PHP 8.6)
* PHP: 8.0 - 8.6 (floor re-verified with PHPCompatibility 5.6-8.6 full-range scan; binding 8.0 constraints: union return types, `str_starts_with()` / `str_contains()`, `mixed` parameter type)
* MariaDB: 11.4 or newer (no DB changes in this release)
**Tests**
* PHP Coding Standards: PHPCS 3.13.6 with WordPress-Core, WordPress-Docs, WordPress-Extra (WPCS 3.4.1) — 0 errors
* PHPStan: level 10 (maximum), 0 errors, no baseline (phpstan 2.3.5 + phpstan-wordpress 2.0.4, stubs 7.1.2)
* PHPCompatibility: 10.0.0-alpha2 — PHP 8.0-8.6 validated (full-range scan 5.6-8.6)
* WP-Compat: 1.5.0 — WordPress 4.2 floor validated (`wp_delete_file()` is the oldest API used)
* PHPUnit: 23 tests pass (17 plugin header tests + 6 Manager-detection tests)
* Manual testing: WordPress 7.2-beta4 single site, PHP 8.6.0RC3 — plugin active, mappings list, debug helpers, and admin menu verified; debug.log clean
= 1.2.2 =
_Release date: 2026-08-24_