-
v2.0.1 Stable
released this
2026-06-02 16:51:12 +00:00 | 0 commits to main since this release2.0.1 [2026-05-25]
Added
- New option "Delete all plugin data on uninstall" (Settings → noindex SEO → General Configuration). By default, all data is preserved when the plugin is uninstalled. Enable this option to remove all settings and per-post directives on uninstall.
Changed
- Lowered minimum WordPress requirement from 6.6 to 5.7, matching the actual oldest API used (
wp_robotsfilter, introduced in WP 5.7). Verified withjohnbillion/wp-compat. - Custom post types registered by plugins or themes on the
inithook now correctly receive the Robots column, bulk actions, and list filter in granular control mode. Previously only built-in post types (post,page,attachment) were supported.
Code Quality
- Added
NOINDEX_SEO_VERSIONconstant; all enqueued assets now use it for cache-busting. - PHP type safety: replaced
(string)casts onmixedvalues fromget_option(),get_post_meta(), and$_POST/$_GET/$_REQUESTsuperglobals with properis_string()/is_scalar()narrowing guards. Passes PHPStan level 9 on PHP 8.5 with zero errors. - Extracted
noindex_seo_save_directives_from_post()helper; meta box save and Quick Edit save now share a single implementation. - Improved
noindex_seo_contextsfilter documentation: documents thestr_replace-based directive key derivation and thenoindex_seo_{context}key format requirement. - Removed dead code:
isset($field['conditional'])block (key never existed in field shape), redundantisset($field['suggestion'])guard, redundantisset($section_icons[$section_id])guard, and a provably non-empty$meta_querycheck. - Removed dead hook registration for
update_option_noindexseo(Settings API group name, not an option name; hook never fired).
Compatibility
- WordPress: 5.7 - 7.1
- PHP: 7.2 - 8.5
Tests
- PHP Coding Standards: 3.13.5
- WordPress Coding Standards: 3.3.0
- PHPStan: 2.1.55
- PHPUnit: 9.6.34
Downloads