diff --git a/changelog.txt b/changelog.txt index 36a1207..f2b0b37 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,30 @@ == Changelog == += 0.6.3 = + +_Release date: 2026-08-18_ + +**Highlights** + +* Translations payloads in the WordPress.org update checks keep the PO-Revision-Date, the minimum the API needs to decide whether a translation update is available + +**Changed** + +* Safe modes now send `{"project":{"locale":{"PO-Revision-Date":"..."}}}` translation payloads for the Core, Themes, and Plugins update checks; the rest of the translation metadata stays removed + +**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.2 = _Release date: 2026-08-18_ diff --git a/includes/class-robotstxt-telemetry-admin.php b/includes/class-robotstxt-telemetry-admin.php index 4462304..709c557 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 the site 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 translation revision date and 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 the 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 translation revision date, 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 48c65e6..37c83f8 100644 --- a/includes/class-robotstxt-telemetry-wordpress-api.php +++ b/includes/class-robotstxt-telemetry-wordpress-api.php @@ -233,11 +233,12 @@ if ( ! class_exists( 'Robotstxt_Telemetry_WordPress_Api' ) ) { } /** - * Reduce translations payloads to empty entries. + * Reduce translations payloads to the translation revision date. * - * 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. + * Only the project and locale identifiers plus the PO-Revision-Date + * are kept: the API needs the revision date to decide whether a + * translation update is available. The rest of the translation + * metadata (creation dates, generators, versions) is removed. * * @param string $json Encoded translations payload. * @return string @@ -258,7 +259,11 @@ if ( ! class_exists( 'Robotstxt_Telemetry_WordPress_Api' ) ) { foreach ( $locales as $locale => $fields ) { if ( is_array( $fields ) ) { - $filtered[ $slug ][ $locale ] = new stdClass(); + $kept = $this->keep_fields( $fields, array( 'po-revision-date' ) ); + + if ( ! empty( $kept ) ) { + $filtered[ $slug ][ $locale ] = $kept; + } } } } diff --git a/languages/robotstxt-telemetry.pot b/languages/robotstxt-telemetry.pot index 7e804a3..ebef2b7 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.2\n" +"Project-Id-Version: Telemetry disabler (by ROBOTSTXT) 0.6.3\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:16:37+00:00\n" +"POT-Creation-Date: 2026-08-18T15:18:00+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 the site 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 translation revision date and 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 the 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 translation revision date, 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 2e3cfb4..6835e52 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.2 +Stable tag: 0.6.3 Requires PHP: 5.6 -Version: 0.6.2 +Version: 0.6.3 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 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. +* **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 revision date. +* **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 revision date, 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 revision date, 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.3 = + +* Changed: translations payloads in the WordPress.org update checks now keep the PO-Revision-Date (needed to know whether a translation update is available); other translation metadata is still removed + = 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 @@ -130,10 +134,6 @@ Only the 3 last versions. The full changelog will be at changelog.txt * Fixed: duplicated "Save Changes" button on the Settings screen * Changed: plugin renamed to "Telemetry disabler (by ROBOTSTXT)" with a new description -= 0.6.0 = - -* 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 - = 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 d04058c..d96145f 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.2 + * Version: 0.6.3 * 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.2' ); +define( 'ROBOTSTXT_TELEMETRY_VERSION', '0.6.3' ); define( 'ROBOTSTXT_TELEMETRY_DB_VERSION', '1.1.0' ); define( 'ROBOTSTXT_TELEMETRY_PLUGIN_FILE', __FILE__ ); define( 'ROBOTSTXT_TELEMETRY_PLUGIN_DIR', __DIR__ );