Skip to content

Netatmo_121: Version 1.2.1

Choose a tag to compare

@Xyla1512 Xyla1512 released this 15 Mar 10:28
· 422 commits to main since this release

[1.2.1] – 2026-03-15

Fixed

  • WordPress Plugin Check compliance: Replaced all json_encode() calls with wp_json_encode() across templates and admin views
  • SQL injection hardening: DELETE query in activation cleanup now uses $wpdb->prepare() with parameterised placeholders
  • TRUNCATE replaced with DELETE: clear_daily_summary() now uses DELETE FROM instead of TRUNCATE TABLE for better WordPress compatibility
  • Deprecated date_i18n() replaced: All occurrences replaced with wp_date() (deprecated since WordPress 5.3)
  • Debug endpoint sanitised: import_debug() now truncates raw API responses to 2000 chars and strips access tokens from output

Improved

  • phpcs compliance: Removed file-level phpcs:disable from class-naws-ajax.php; replaced with targeted inline phpcs:ignore comments on each affected line
  • Database class documentation: Added detailed justification comment block for file-level phpcs suppressions in class-naws-database.php