From 62311183083b3478455440075f0158b20d56db21 Mon Sep 17 00:00:00 2001 From: Javier Casares Date: Tue, 18 Aug 2026 16:29:50 +0000 Subject: [PATCH] v0.6.2 --- changelog.txt | 25 +++++++++++++++++++ includes/class-robotstxt-telemetry-admin.php | 4 +-- ...lass-robotstxt-telemetry-wordpress-api.php | 12 ++++----- languages/robotstxt-telemetry.pot | 8 +++--- readme.txt | 19 +++++++------- robotstxt-telemetry.php | 4 +-- 6 files changed, 48 insertions(+), 24 deletions(-) diff --git a/changelog.txt b/changelog.txt index d98e8cf..36a1207 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,30 @@ == Changelog == += 0.6.2 = + +_Release date: 2026-08-18_ + +**Highlights** + +* Translations payloads in the WordPress.org update checks are now sent as empty entries, removing the last translation metadata + +**Changed** + +* Safe modes now send `{"project":{"locale":{}}}` translation payloads (only the project and locale identifiers) instead of the POT/PO dates, for the Core, Themes, and Plugins update checks + +**Compatibility** + +* WordPress: 4.0 - 7.1 +* PHP: 5.6 - 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.6.1 = _Release date: 2026-08-18_ diff --git a/includes/class-robotstxt-telemetry-admin.php b/includes/class-robotstxt-telemetry-admin.php index 71b25c5..4462304 100644 --- a/includes/class-robotstxt-telemetry-admin.php +++ b/includes/class-robotstxt-telemetry-admin.php @@ -435,11 +435,11 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Admin' ) ) { ), 'robotstxt_telemetry_wp_themes_check' => array( 'label' => __( 'WordPress Themes version check', 'robotstxt-telemetry' ), - 'desc' => __( 'Safe sends only the theme name, version, update URI, template, and stylesheet, plus translation dates and locale. Original also sends author details and other theme metadata.', 'robotstxt-telemetry' ), + 'desc' => __( 'Safe sends only the theme name, version, update URI, template, and stylesheet, plus the site locale. Original also sends author details and other theme metadata.', 'robotstxt-telemetry' ), ), 'robotstxt_telemetry_wp_plugins_check' => array( 'label' => __( 'WordPress Plugins version check', 'robotstxt-telemetry' ), - 'desc' => __( 'Safe sends only the plugin version, update URI, and requirements, plus translation dates, locale, and the "all" flag. Original also sends names, descriptions, authors, and other plugin metadata.', 'robotstxt-telemetry' ), + 'desc' => __( 'Safe sends only the plugin version, update URI, and requirements, plus the locale and the "all" flag. Original also sends names, descriptions, authors, and other plugin metadata.', 'robotstxt-telemetry' ), ), ); diff --git a/includes/class-robotstxt-telemetry-wordpress-api.php b/includes/class-robotstxt-telemetry-wordpress-api.php index 34831ef..48c65e6 100644 --- a/includes/class-robotstxt-telemetry-wordpress-api.php +++ b/includes/class-robotstxt-telemetry-wordpress-api.php @@ -233,7 +233,11 @@ if ( ! class_exists( 'Robotstxt_Telemetry_WordPress_Api' ) ) { } /** - * Reduce translations payloads to the translation project dates. + * Reduce translations payloads to empty entries. + * + * Only the project and locale identifiers are kept (the API needs + * them to know which translations to check); all the translation + * metadata (dates, generators, versions) is removed. * * @param string $json Encoded translations payload. * @return string @@ -254,11 +258,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_WordPress_Api' ) ) { foreach ( $locales as $locale => $fields ) { if ( is_array( $fields ) ) { - $kept = $this->keep_fields( $fields, array( 'pot-creation-date', 'po-revision-date' ) ); - - if ( ! empty( $kept ) ) { - $filtered[ $slug ][ $locale ] = $kept; - } + $filtered[ $slug ][ $locale ] = new stdClass(); } } } diff --git a/languages/robotstxt-telemetry.pot b/languages/robotstxt-telemetry.pot index ca71bcf..7e804a3 100644 --- a/languages/robotstxt-telemetry.pot +++ b/languages/robotstxt-telemetry.pot @@ -2,14 +2,14 @@ # This file is distributed under the GPL v3 or later. msgid "" msgstr "" -"Project-Id-Version: Telemetry disabler (by ROBOTSTXT) 0.6.1\n" +"Project-Id-Version: Telemetry disabler (by ROBOTSTXT) 0.6.2\n" "Report-Msgid-Bugs-To: https://www.robotstxt.software/plugins/robotstxt-telemetry/" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2026-08-18T15:14:14+00:00\n" +"POT-Creation-Date: 2026-08-18T15:16:37+00:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.12.0\n" "X-Domain: robotstxt-telemetry\n" @@ -130,7 +130,7 @@ msgid "WordPress Themes version check" msgstr "" #: includes/class-robotstxt-telemetry-admin.php:438 -msgid "Safe sends only the theme name, version, update URI, template, and stylesheet, plus translation dates and locale. Original also sends author details and other theme metadata." +msgid "Safe sends only the theme name, version, update URI, template, and stylesheet, plus the site locale. Original also sends author details and other theme metadata." msgstr "" #: includes/class-robotstxt-telemetry-admin.php:441 @@ -138,7 +138,7 @@ msgid "WordPress Plugins version check" msgstr "" #: includes/class-robotstxt-telemetry-admin.php:442 -msgid "Safe sends only the plugin version, update URI, and requirements, plus translation dates, locale, and the \"all\" flag. Original also sends names, descriptions, authors, and other plugin metadata." +msgid "Safe sends only the plugin version, update URI, and requirements, plus the locale and the \"all\" flag. Original also sends names, descriptions, authors, and other plugin metadata." msgstr "" #: includes/class-robotstxt-telemetry-admin.php:454 diff --git a/readme.txt b/readme.txt index d8c846d..2e3cfb4 100644 --- a/readme.txt +++ b/readme.txt @@ -3,9 +3,9 @@ Contributors: robotstxt, javiercasares Tags: telemetry, privacy, http, requests, logging Requires at least: 4.0 Tested up to: 7.1 -Stable tag: 0.6.1 +Stable tag: 0.6.2 Requires PHP: 5.6 -Version: 0.6.1 +Version: 0.6.2 License: GPL-3.0-or-later License URI: https://www.gnu.org/licenses/gpl-3.0.txt @@ -21,9 +21,9 @@ Telemetry disabler (by ROBOTSTXT) gives you control over that conversation in tw The three WordPress.org update checks run in "Safe" mode by default, meaning they only send the minimum data required to keep receiving updates: -* **Core version check** (`api.wordpress.org/core/version-check/`): only the WordPress version, PHP version, locale, normalized MySQL/MariaDB version (for example "11.8.8-MariaDB", without distribution or logging suffixes), and update channel. Site counts, database history, PHP extensions and platform details are removed, the site-identifying `wp_install`/`wp_blog` headers are stripped, and translation payloads are reduced to their project dates (no `Project-Id-Version` or `X-Generator` metadata). -* **Themes version check** (`api.wordpress.org/themes/update-check/`): each theme is reported with only its name, version, update URI, template and stylesheet; translations are reduced to their project dates, plus the site locale. -* **Plugins version check** (`api.wordpress.org/plugins/update-check/`): each plugin is reported with only its version, update URI and requirements (WordPress, PHP, dependent plugins); translations are reduced to their project dates, plus the locale and the "all" flag. +* **Core version check** (`api.wordpress.org/core/version-check/`): only the WordPress version, PHP version, locale, normalized MySQL/MariaDB version (for example "11.8.8-MariaDB", without distribution or logging suffixes), and update channel. Site counts, database history, PHP extensions and platform details are removed, the site-identifying `wp_install`/`wp_blog` headers are stripped, and translation payloads are reduced to empty entries (only the project and locale identifiers are kept). +* **Themes version check** (`api.wordpress.org/themes/update-check/`): each theme is reported with only its name, version, update URI, template and stylesheet; translations are reduced to empty entries, plus the site locale. +* **Plugins version check** (`api.wordpress.org/plugins/update-check/`): each plugin is reported with only its version, update URI and requirements (WordPress, PHP, dependent plugins); translations are reduced to empty entries, plus the locale and the "all" flag. * Update URIs pointing at wordpress.org are kept as-is (they are public slugs); update URIs hosted anywhere else are replaced with a deterministic hash, so external plugin and theme sources are not disclosed. Each check can be switched back to "Original" in the Settings screen to send exactly what WordPress would send without this plugin. @@ -120,6 +120,10 @@ On WordPress versions older than 5.1, the Core update check Safe mode cannot red Only the 3 last versions. The full changelog will be at changelog.txt += 0.6.2 = + +* Changed: translations payloads in the WordPress.org update checks now send empty entries (only the project and locale identifiers), removing the POT/PO dates + = 0.6.1 = * Changed: minimum requirements lowered to WordPress 4.0 and PHP 5.6, with compatibility fallbacks for older WordPress APIs @@ -130,11 +134,6 @@ Only the 3 last versions. The full changelog will be at changelog.txt * Added: Multisite configuration mode (Per-site by default, Global from the Network Admin) to run the settings and logs per site or centrally for the whole network -= 0.5.0 = - -* Added: log retention setting (12 hours by default, 1 day, 3 days) with a 1000-entry cap, cleanup when browsing the logs and via a twice-daily cron -* Added: "Delete all logs" button with a double confirmation step - = Previous versions = If you want to see the full changelog, visit the [changelog.txt](https://www.robotstxt.software/plugins/robotstxt-telemetry/) page. diff --git a/robotstxt-telemetry.php b/robotstxt-telemetry.php index c802e47..d04058c 100644 --- a/robotstxt-telemetry.php +++ b/robotstxt-telemetry.php @@ -4,7 +4,7 @@ * Plugin URI: https://www.robotstxt.software/plugins/robotstxt-telemetry/ * Update URI: https://www.robotstxt.software/plugins/robotstxt-telemetry/ * Description: Reduces the telemetry WordPress sends out and logs every outbound HTTP request, so your site shares less and you can see everything. - * Version: 0.6.1 + * Version: 0.6.2 * Author: ROBOTSTXT * Author URI: https://www.robotstxt.software/ * Text Domain: robotstxt-telemetry @@ -23,7 +23,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } -define( 'ROBOTSTXT_TELEMETRY_VERSION', '0.6.1' ); +define( 'ROBOTSTXT_TELEMETRY_VERSION', '0.6.2' ); define( 'ROBOTSTXT_TELEMETRY_DB_VERSION', '1.1.0' ); define( 'ROBOTSTXT_TELEMETRY_PLUGIN_FILE', __FILE__ ); define( 'ROBOTSTXT_TELEMETRY_PLUGIN_DIR', __DIR__ );