From 1f308e89176b940cd0bd7e785753f5ffe601d394 Mon Sep 17 00:00:00 2001 From: Javier Casares Date: Mon, 17 Aug 2026 19:16:01 +0000 Subject: [PATCH] v2.2.4 --- .gitignore | 5 - CHANGELOG.md | 144 ---- changelog.txt | 28 + class-robotstxt-updater.php | 404 ----------- includes/class-plugin.php | 137 +++- includes/class-settings-page.php | 44 +- languages/robotstxt-smtp-ca.mo | Bin 33316 -> 37692 bytes languages/robotstxt-smtp-ca.po | 1125 ++++++++++++++++------------ languages/robotstxt-smtp-es_ES.mo | Bin 33741 -> 38002 bytes languages/robotstxt-smtp-es_ES.po | 1129 +++++++++++++++++------------ languages/robotstxt-smtp.pot | 1099 ++++++++++++++-------------- readme.txt | 74 +- robotstxt-smtp.php | 15 +- uninstall.php | 23 +- update.json | 8 +- 15 files changed, 2142 insertions(+), 2093 deletions(-) delete mode 100644 .gitignore delete mode 100644 CHANGELOG.md delete mode 100644 class-robotstxt-updater.php diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 867ce1f..0000000 --- a/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -/vendor/ -/composer.lock -/.codegraph/ -/.claude/ -*.zip diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 0162767..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,144 +0,0 @@ -# Changelog - -All notable changes to SMTP (by ROBOTSTXT) are documented in this file. -Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - -## [2.2.3] - 2026-06-09 - -### Fixed - -* **DKIM "Try selector" form broken in Network Admin.** The hidden `page` input was constructed as `self::NETWORK_MENU_SLUG . '-tools'` (`robotstxt-smtp-network-tools`), which does not exist. Both the site and the network menus register the Tools page under the same `self::TOOLS_PAGE_SLUG` constant (`robotstxt-smtp-tools`). Fixed to always use `self::TOOLS_PAGE_SLUG`. - ---- - -## [2.2.2] - 2026-06-09 - -### Fixed - -* **From Email / Reply-To Email not clearing.** `sanitize_options()` treated an empty submitted value as "keep the current value". Added explicit `$clean['from_email'] = ''` / `$clean['reply_to_email'] = ''` in the `else` branch so blanking the field is persisted. -* **"Clear password" had no effect.** `update_option()` always runs the registered `sanitize_option_{name}` callback, which re-applies the old password when the submitted value is empty. Fixed by temporarily removing the filter before `update_option()` and re-adding it after. -* **"Clear password" submitted to `options.php`.** The button was rendered inside a `
` nested inside the settings form. Nested forms are invalid HTML; the browser submits the outer form instead. Replaced with a `wp_nonce_url()` GET link that submits independently. -* **DKIM "Try selector" button did nothing.** The `` was inside the cached tool HTML rendered via `wp_kses_post()`, which strips ``, ``, and `