robotstxt-telemetry/changelog.txt
2026-08-18 16:28:38 +00:00

244 lines
9.4 KiB
Text

== Changelog ==
= 0.6.1 =
_Release date: 2026-08-18_
**Highlights**
* Compatibility lowered to WordPress 4.0 and PHP 5.6, keeping every feature available on modern versions
**Changed**
* Minimum requirements lowered to WordPress 4.0 (was 6.2) and PHP 5.6 (was 7.4)
* Removed PHP 7-only syntax (scalar type hints, return type declarations, null coalescing operators, typed properties)
* Replaced the `%i` placeholder of the WordPress database API (WordPress 6.2+) with interpolated internal table names
* Compatibility fallbacks for older WordPress APIs: `wp_json_encode()` and `wp_parse_url()` shims, `get_sites()` via `wp_get_sites()`, `get_main_site_id()` via `get_current_site()`, and an inline-script fallback for `wp_add_inline_script()`
* Settings registered with the WordPress 4.0 signature of `register_setting()`
* Plugin renamed to "Telemetry disabler (by ROBOTSTXT)" with a new description
* Improved readme.txt documentation structure
**Fixed**
* Duplicated "Save Changes" button on the Settings screen
**Compatibility**
* WordPress: 4.0 - 7.1
* PHP: 5.6 - 8.5
* MariaDB: 10.6+
* Multisite: compatible (Per-site and Global modes)
* Known limitation: on WordPress older than 5.1 the Core update check Safe mode cannot reduce the query arguments (the hook does not exist); headers and translations are still reduced
**Tests**
* WordPress 7.2-alpha-63320, PHP 8.5.9, MariaDB 11.8.8
* PHP Coding Standards: 3.13.6
* WordPress Coding Standards: 3.4.1
* PHPCompatibilityWP (PHP 5.6 - 8.5) and wp-since (WordPress 4.0) static reviews
= 0.6.0 =
_Release date: 2026-08-18_
**Highlights**
* Multisite configuration modes: run the plugin per site (default) or centrally for the whole network from the Network Admin
**Added**
* "Configuration mode" setting (Network Admin → Telemetry): "Per-site" (default) keeps separate settings and log tables per site, "Global" uses one shared configuration and one central log table on the main site
* Network Admin Telemetry screens (Settings, and Logs in Global mode) restricted to `manage_network_options`
* When switching to Global, the network settings are seeded from the main site values
* In Global mode the per-site Telemetry screens are removed, the cleanup cron runs on the main site only, and subsites do not create their own tables
* Uninstall honors the network-wide delete-data option in Global mode and removes the shared network options
* Deactivation clears the cleanup cron on every site
**Changed**
* Plugin renamed to "Telemetry disabler (by ROBOTSTXT)" with a new description
* Improved readme.txt documentation structure
**Compatibility**
* WordPress: 6.2 - 7.1
* PHP: 7.4 - 8.5
* MariaDB: 10.6+
* Multisite: compatible (Per-site and Global modes)
**Tests**
* WordPress 7.2-alpha-63320, PHP 8.5.9, MariaDB 11.8.8
* PHP Coding Standards: 3.13.6
* WordPress Coding Standards: 3.4.1
= 0.5.0 =
_Release date: 2026-08-18_
**Highlights**
* Log retention management: configurable retention periods, a 1000-entry cap, scheduled cleanup, and a double-checked bulk deletion
**Added**
* "Log retention" setting with three options: 12 hours (default), 1 day, and 3 days
* A hard cap of 1000 log entries applies to every retention option; only the newest entries are kept
* The database cleaner runs when the logs list is visited and via a "twicedaily" cron event (cleared on deactivation and uninstall)
* "Delete all logs" button on the Logs screen with a two-step confirmation (nonce-protected on both steps)
**Compatibility**
* WordPress: 6.2 - 7.1
* PHP: 7.4 - 8.5
* MariaDB: 10.6+
* Multisite: compatible
**Tests**
* WordPress 7.2-alpha-63320, PHP 8.5.9, MariaDB 11.8.8
* PHP Coding Standards: 3.13.6
* WordPress Coding Standards: 3.4.1
= 0.4.0 =
_Release date: 2026-08-18_
**Highlights**
* Safe modes (default) for the WordPress.org Core, Themes, and Plugins update checks, limiting the data sent to the minimum required to keep receiving updates
**Added**
* WordPress Core version check mode (Safe by default): sends only version, PHP, locale, normalized MySQL/MariaDB version (without distribution or logging suffixes), and channel; strips site counts, database history, PHP extensions, platform details, and the site-identifying wp_install/wp_blog headers; translation payloads reduced to project dates (no Project-Id-Version or X-Generator metadata)
* WordPress Themes version check mode (Safe by default): reports each theme with only name, version, update URI, template, and stylesheet; translations reduced to project dates, plus locale
* WordPress Plugins version check mode (Safe by default): reports each plugin with only version, update URI, RequiresWP, RequiresPHP, and RequiresPlugins; translations reduced to project dates, plus locale and the "all" flag
* Update URIs pointing at wordpress.org are kept as-is; update URIs hosted elsewhere are replaced with a deterministic hash so external plugin and theme sources are not disclosed
* New "WordPress API calls" settings section with Original/Safe options for each check
* The new options are removed on uninstall together with the other plugin options
**Changed**
* Update check requests are logged after the Safe filters run, so the Telemetry logs show exactly what was transmitted
**Fixed**
* The User-Agent is now also hashed for the WordPress.org update checks, which send an explicit User-Agent that bypassed the default User-Agent filter
**Compatibility**
* WordPress: 6.2 - 7.1
* PHP: 7.4 - 8.5
* MariaDB: 10.6+
* Multisite: compatible
**Tests**
* WordPress 7.2-alpha-63320, PHP 8.5.9, MariaDB 11.8.8
* PHP Coding Standards: 3.13.6
* WordPress Coding Standards: 3.4.1
= 0.3.0 =
_Release date: 2026-08-18_
**Highlights**
* New privacy setting that hashes the site URL in the User-Agent of outbound requests (enabled by default)
**Added**
* "Hash the site URL in the User-Agent of outbound requests" setting, enabled by default: the default outbound User-Agent "WordPress/<version>; <site URL>" becomes "WordPress/<version>; <hash>", where the hash is a deterministic SHA-256 truncation of the site URL, so the site is no longer identifiable while remaining consistent across requests
* The new option is removed on uninstall together with the other plugin options
**Compatibility**
* WordPress: 6.2 - 7.1
* PHP: 7.4 - 8.5
* MariaDB: 10.6+
* Multisite: compatible
**Tests**
* WordPress 7.2-alpha-63320, PHP 8.5.9, MariaDB 11.8.8
* PHP Coding Standards: 3.13.6
* WordPress Coding Standards: 3.4.1
= 0.2.0 =
_Release date: 2026-08-18_
**Highlights**
* Settings screen and uninstall behavior (data preserved by default), Manager (by ROBOTSTXT) dependency notices, and lowered requirements to WordPress 6.2 / PHP 7.4
**Added**
* Settings screen with the "Delete all telemetry logs and plugin options on uninstall" checkbox (unchecked by default)
* Manager (by ROBOTSTXT) dependency notice: dismissible on the plugins list screen, permanent on the plugin Settings screen
* `uninstall.php` routine honoring the delete-data option, Multisite aware (per-site tables), using WordPress database APIs
* `bin/deploy.sh` script that builds a distributable ZIP in the plugin's parent directory, reading the version from the plugin headers
* `languages/robotstxt-telemetry.pot` translation template
**Changed**
* Minimum requirements lowered to WordPress 6.2 and PHP 7.4 (previously 6.7 / 8.2)
* Plugin URI and Update URI set to https://www.robotstxt.software/plugins/robotstxt-telemetry/
* Author URI set to https://www.robotstxt.software/
* Contributors ordered as robotstxt, javiercasares
**Fixed**
* Query parameters were not stored because the `wp_parse_args()` return value was discarded
* Invalid UTF-8 no longer discards whole payloads; values are truncated first and then scrubbed
**Security**
* Query strings are redacted before the URL is stored; credentials embedded in URLs are stripped
* Log detail view prefers the already-redacted stored parameters over re-parsing the raw URL
* Removed the bundled self-updater (`robotstxt-updater.php`, `update.json`); updates are now handled by the Manager (by ROBOTSTXT) plugin
**Removed**
* Bundled updater files `robotstxt-updater.php` and `update.json`
**Compatibility**
* WordPress: 6.2 - 7.1
* PHP: 7.4 - 8.5
* MariaDB: 10.6+
* Multisite: compatible
**Tests**
* WordPress 7.2-alpha-63320, PHP 8.5.9, MariaDB 11.8.8
* PHP Coding Standards: 3.13.6
* WordPress Coding Standards: 3.4.1
* PHPCompatibilityWP (PHP 7.4-8.5): 9.3.5
* wp-since (WordPress 6.2+): 1.5.0
= 0.1.0 =
_Release date: 2026-08-18_
**Highlights**
* Initial release: outbound HTTP request logging with an admin Logs screen
**Added**
* Outbound HTTP capture through `http_request_args` storing method, URL, host, path, query parameters, body parameters/raw body, sanitized headers, user agent, and caller backtrace
* Custom database table `{$wpdb->prefix}robotstxt_telemetry_logs` created with `dbDelta()` on activation, with lazy per-site schema upgrades on Multisite
* Logs admin screen: paginated `WP_List_Table` with method, host, and date range filters, single entry view with pretty-printed JSON, and nonce-protected delete action
* Secret redaction for sensitive keys (authorization, password, token, secret, api_key, nonce) applied before storing
* Payload size limits: 64 KB per JSON blob, 64 KB raw body, 16 KB caller trace
* Dedicated analysis view for `api.wordpress.org` requests grouping environment, extensions, platform flags, and image support parameters
**Compatibility**
* WordPress: 6.7 - 6.9
* PHP: 8.2 - 8.5
**Tests**
* WordPress 6.9, PHP 8.2-8.5