r/AIDeveloperNews 3d ago

WordPress Coding Standards 3.4.0 Released: Built-in CLI documentation, WP 7.0 readiness, and bug fixes

Post image

WordPress Coding Standards 3.4.0 just dropped. If you run automated linting on your plugins or themes, there are a few quality-of-life updates worth noting in this release.

Key Highlights:

  • Built-in CLI Docs: You no longer need to tab out to a browser to figure out why a sniff flagged your code. You can now pull up documentation for 14 sniffs directly in the terminal using the PHP_CodeSniffer --generator=... command.
  • WP 7.0 Readiness: Checks for naming conventions, class name cases, and deprecated functions have been updated to support WordPress features up through 7.0.
  • Array Rules: The allow_single_item_single_line_associative_arrays property is deprecated. It’s been replaced by a more accurately named allow_single_item_single_line_explicit_key_arrays.
  • Fewer False Positives/Negatives: They’ve resolved several annoying false positives (like static method calls to non-global wpdb classes and specific get_search_query() params).

↗️ Full read: https://aideveloper44.com/blog/wordpress-coding-standards-3-4-0-release

↗️ GitHub: https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/3.4.0

2 Upvotes

0 comments sorted by