• 3.4.0 fb0ef03b73

    v3.4.0 Stable

    javier released this 2026-11-03 17:05:54 +00:00 | 3 commits to main since this release

    3.4.0

    Release date: 2026-09-19

    Highlights

    • WP-CLI support (TODO #7): a wp noindex-seo command namespace with list, set, unset, export, import and bulk per-post overrides — automation-friendly and scaling past the ~200-post ceiling of the bulk UI.

    Added

    • WP-CLI commands. wp noindex-seo list [--context=] [--format=table|csv|json|yaml] (every context × directive pair with its status), wp noindex-seo set <context> [<directive>...] / wp noindex-seo unset <context> [<directive>...] (default: all five directives; saving clears the transient cache), wp noindex-seo export [<file>] (JSON payload to STDOUT or a file, same as the tools tab), wp noindex-seo import <file> [--dry-run] (same validation and sanitization as the import form; --dry-run reports the number of values that would change), and wp noindex-seo override <post_id>... [--off] (bulk per-post granular overrides without the UI's selection limit; --off clears the override and directive meta). The commands enforce the same rules as the settings page: unknown contexts/directives are rejected and the attachment context refuses to enable while the implementation method is meta-only.
    • stubs/wp-cli-stubs.php: minimal WP-CLI signatures for PHPStan and a recording stub for the test suite (never shipped; excluded from the release ZIP and from PHPCS).
    • The undefined "migrate-attachments" command from the original TODO was replaced by the general-purpose override bulk command, which covers the same need for every post type.

    Changed

    • Nothing.

    Fixed

    • Nothing.

    Security

    • No security changes; the CLI handlers reuse the existing validated/sanitized helpers, operator-supplied file paths are checked with is_readable() before reading, and PHPCS/PHPStan/composer audit stay clean.

    Compatibility

    • WordPress: 4.7 - 7.2
    • PHP: 5.6 - 8.5

    Tests

    • PHPUnit: 9.6.36 (185 tests, all passing): command registration, set/unset round-trips (including transient invalidation and defaults), unknown context/directive rejection, the attachment header-only invariant, list rows and filtering, export to STDOUT and file, import dry-run/apply/rejection, and override enable/disable/skip-missing.
    Downloads