v3.7.1
This commit is contained in:
parent
54122d3d95
commit
ba2c697d36
1 changed files with 374 additions and 139 deletions
|
|
@ -1,5 +1,60 @@
|
|||
== Changelog ==
|
||||
|
||||
= 3.7.1 =
|
||||
|
||||
_Release date: 2026-11-26_
|
||||
|
||||
**Highlights**
|
||||
|
||||
* WordPress 7.2 certified: verified on 7.2-RC3 (build 65782, treated as GA), `Tested up to: 7.2`. PHP 8.6 support verified on PHP 8.6.0 GA.
|
||||
* Static analysis raised to PHPStan level 10 (the maximum) with no baseline and no ignore comments: every finding was fixed in code.
|
||||
* Two front-end/admin bugs fixed (contradictory `follow, nofollow` on search results; missing notranslate icon on WordPress 7.0 - 7.1) and a round of input-validation and database-API hardening.
|
||||
|
||||
**Added**
|
||||
|
||||
* Nothing.
|
||||
|
||||
**Changed**
|
||||
|
||||
* The 2.x → 3.x migration now flips the legacy options to non-autoloaded with the core `wp_set_option_autoload_values()` API (which also keeps the options cache consistent) instead of a hand-written `UPDATE` query; the main plugin file no longer contains direct SQL.
|
||||
* `uninstall.php` builds every query with the `%i` identifier placeholder (wildcard option/transient prefixes, and one `DELETE … WHERE meta_key = %s` per post/term meta key — kept as single statements so large sites never load every meta ID into PHP), and also deletes the import-count transient through the Transients API so persistent object caches are cleared.
|
||||
* The import queries drop the redundant `suppress_filters => true` (already the `get_posts()` default; flagged by Plugin Check). Behavior is unchanged.
|
||||
* The test suite is version-aware: SVG-only icon assertions are skipped below WordPress 7.2 and the emoji fallback is asserted instead, so the suite passes on every supported WordPress version. `phpunit.xml` uses the PHPUnit 9.6 schema attribute (`processUncoveredFiles`).
|
||||
* Development dependencies refreshed via `composer update`: PHPStan 2.3.7, PHPUnit 9.6.39, doctrine/instantiator 2.2.0 (no CVEs).
|
||||
|
||||
**Fixed**
|
||||
|
||||
* Search results (and any page where another source adds the positive counterpart) printed contradictory robots directives — `noindex, follow, …, nofollow` — when the plugin enabled `nofollow`: core's `wp_robots_noindex_search()` adds `follow` on search results and the plugin added `nofollow` next to it. A plugin `nofollow` now replaces `follow`, and a plugin `noindex` replaces `index`. This also applies to the HTTP-header-only output method: the plugin still adds nothing to the meta tag, but a header `nofollow` / `noindex` now removes the `follow` / `index` that the tag other sources print would otherwise contradict it with (nothing else in that tag is changed).
|
||||
* The `notranslate` directive (added in 3.6.0) rendered no icon on WordPress 7.0 - 7.1: its legacy emoji fallback glyph was missing, so the settings grid, meta box, Quick Edit and Robots columns showed an empty slot. It now falls back to 🌐 like the other directives.
|
||||
* Entries returned by the `noindex_seo_import_sources` filter are validated (slug, label, and noindex/nofollow flag specs); malformed ones — or a non-array filter result — are dropped instead of raising PHP warnings in the import counter and runner. A non-array or non-string `noindex_seo_conflicting_plugins` filter result is ignored the same way.
|
||||
* Cached import counts with stale or foreign value types are recounted instead of being cast.
|
||||
* `unavailable_after` (added in 3.6.0) printed the raw site-time value without a UTC offset in the robots meta tag (`unavailable_after:2030-01-01 09:00`), so crawlers could read a time shifted by the site's offset, and the RFC 1123 form used in the `X-Robots-Tag` header contained a comma (`Tue, 01 Jan …`) that collided with the directive separator. Both outputs now use ISO 8601 with the offset (`2030-01-01T09:00:00+01:00`), a format search engines document as supported. Stored values are unchanged.
|
||||
|
||||
**Security**
|
||||
|
||||
* The legacy 2.x options are registered with a `sanitize_callback` (`absint` for the 0/1 flags; the method is whitelisted to `meta`, `header` or `both`, falling back to `meta`): a direct `options.php` write — `manage_options` only — can no longer store unsanitized values. Resolves the five Plugin Check `register_setting()` errors. Registration is limited to the five directives that had 2.x options (the 3.6.0 directives were registered as phantom legacy options before).
|
||||
* The uninstall wildcard cleanup escapes its prefixes with `$wpdb->esc_like()`: the `_` in `noindex_seo_%` is a LIKE wildcard, so the old pattern could also delete look-alike options of other plugins (`noindexXseoX…`).
|
||||
* No new attack surface. PHPCS, PHPStan level 10, Plugin Check (0 errors) and `composer audit` clean.
|
||||
|
||||
**Compatibility**
|
||||
|
||||
* WordPress: 7.0 - 7.2
|
||||
* PHP: 8.3 - 8.6
|
||||
* WP-CLI: 2.12.0
|
||||
* PHP 8.6 needs WordPress 7.1 or newer: WordPress 7.0.9 core itself raises PHP 8.6 deprecations (`spl_object_hash()`, constructor return values); the plugin's own code is clean on 8.6.
|
||||
|
||||
**Tests**
|
||||
|
||||
* PHP Coding Standards: 3.13.6
|
||||
* WordPress Coding Standards: 3.4.1
|
||||
* Plugin Check (PCP): 2.2.0 — 0 errors; 4 justified warnings (`load_plugin_textdomain()` for the bundled translations, `post__not_in` / `exclude` in the sitemap exclusions).
|
||||
* PHPUnit: 9.6.39 — 238 tests, 1196 assertions, all passing on WordPress 7.2-RC3 under PHP 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5 and 8.6.0, single site and Multisite; also passing on WordPress 7.1.5 (PHP 8.3 - 8.6), 7.0.9 (PHP 8.3 - 8.5), 6.9.12 and 6.4.15 (PHP 8.3).
|
||||
* PHPStan: 2.3.7, level 10, no baseline, 0 errors.
|
||||
* Pre-deploy AI audit (clean context): CONDITIONAL PASS, no critical findings; every finding was fixed before release (non-array import-sources filter result, uninstall meta deletion at scale, header-only `follow`, legacy method whitelist, `unavailable_after` offset); a second clean-context audit of those fixes found no critical issue. No known issues remain open.
|
||||
* PHPCompatibility: 9.3.5 — 0 errors on the declared range 8.3-8.6 and on the full review ranges 7.4-8.6 and 5.6-8.6; PHP 8.6 deprecation scan (`spl_object_hash`, `is_integer`, `is_double`, `strcoll`, `mb_ereg*`, `is_a()`, constructor/destructor returns, `class Is`, `const namespace`) and `opcache_reset()` / `opcache_invalidate()` usage: none.
|
||||
* Real compatibility (measured, beyond the declared window): WordPress 6.4+ (static API floor via wp-compat; was 5.3 in 3.7.0) and PHP 7.4+ (runtime-verified).
|
||||
* Database: MariaDB 11.8.10.
|
||||
|
||||
= 3.7.0 =
|
||||
|
||||
_Release date: 2026-11-03_
|
||||
|
|
|
|||
Loading…
Reference in a new issue