Compare commits

...
Author SHA1 Message Date
d34408cbd8 v1.1.5 2026-08-24 13:44:58 +00:00
e4518812c3 v1.1.4 2026-08-20 14:31:43 +00:00
7ae471e27f v1.1.1 2026-08-18 19:06:22 +00:00
5221310caa v1.0.1 2026-08-18 18:03:59 +00:00
515af45d09 v1.0.0 2026-08-18 16:32:08 +00:00
54a767c4ce v0.6.3 2026-08-18 16:30:43 +00:00
6231118308 v0.6.2 2026-08-18 16:29:50 +00:00
e9782eaa82 v0.6.1 2026-08-18 16:28:38 +00:00
25 changed files with 7297 additions and 655 deletions

View file

@ -1,72 +0,0 @@
# Changelog
## [0.2.0] - 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] - 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

View file

@ -1,56 +0,0 @@
# Telemetry (by ROBOTSTXT)
Logs outbound HTTP requests made by WordPress for inspection. Every external call performed through the WordPress HTTP API is recorded — with sensitive values redacted — in a custom database table, and can be browsed from a dedicated admin panel with filters, detail views, and safe deletion.
* Plugin URI: https://www.robotstxt.software/plugins/robotstxt-telemetry/
* Author: [ROBOTSTXT](https://www.robotstxt.software/)
* License: GPL-3.0-or-later
## Features
* Captures GET, POST, HEAD, PUT, PATCH, and DELETE requests made via the WP HTTP API.
* Stores method, URL, host, path, query parameters, body parameters (or truncated raw body), sanitized headers, user agent, and caller backtrace.
* Redacts secrets (authorization, passwords, tokens, API keys, nonces) and strips URL credentials before anything is written to the database.
* Size-limited storage: 64 KB per JSON blob, 64 KB raw body, 16 KB caller trace.
* Logs admin screen with pagination, method/host/date filters, single-entry detail view, and nonce-protected deletion.
* Dedicated analysis view for `api.wordpress.org` calls (environment, extensions, platform flags, image support).
* Multisite compatible (`Network: true`), per-site tables.
## Compatibility
* WordPress: 6.2 - 7.1
* PHP: 7.4 - 8.5
* MariaDB: 10.6+
## Updates
Updates are delivered through the [Manager (by ROBOTSTXT)](https://www.robotstxt.software/plugins/robotstxt-manager/) plugin. If it is not installed and active, this plugin shows a dismissible reminder in the plugins list and a permanent notice on its Settings screen.
## Dependencies
* Runtime: none.
* Development only (not shipped): Composer with PHPCS, WordPress Coding Standards, PHPCompatibility, and wp-since for QA. See `composer.json`.
## Documentation
* User documentation: `readme.txt`
* Full changelog: `changelog.txt` and `CHANGELOG.md`
* Internal design notes: `docs/`
## Development QA
```bash
composer install
vendor/bin/phpcs --standard=WordPress --ignore=vendor .
vendor/bin/phpcs --standard=PHPCompatibilityWP --runtime-set testVersion 7.4- --ignore=vendor .
```
## Deployment
Builds are always executed manually:
```bash
./bin/deploy.sh
```
The script reads the version from the plugin headers and generates `robotstxt-telemetry-<version>.zip` in the parent directory of the plugin folder, excluding development files.

View file

@ -1,59 +0,0 @@
#!/usr/bin/env bash
#
# Build a distributable ZIP of the plugin.
#
# Reads the version from the plugin header and writes the artifact to the
# parent directory of the plugin folder. Deploys are always executed manually.
#
# Usage: ./bin/deploy.sh
set -euo pipefail
PLUGIN_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
PLUGIN_SLUG="$(basename "$PLUGIN_DIR")"
MAIN_FILE="$PLUGIN_DIR/$PLUGIN_SLUG.php"
if [[ ! -f "$MAIN_FILE" ]]; then
echo "Error: $MAIN_FILE not found." >&2
exit 1
fi
VERSION="$(awk -F': ' '/Version:/{gsub(/[[:space:]]/, "", $2); print $2; exit}' "$MAIN_FILE")"
if [[ -z "$VERSION" ]]; then
echo "Error: unable to read the plugin version from $MAIN_FILE." >&2
exit 1
fi
ARTIFACT="$PLUGIN_DIR/../$PLUGIN_SLUG-$VERSION.zip"
STAGING="$(mktemp -d)"
trap 'rm -rf "$STAGING"' EXIT
rsync -a \
--exclude '.git/' \
--exclude '.github/' \
--exclude '.claude/' \
--exclude '.codex/' \
--exclude 'vendor/' \
--exclude 'node_modules/' \
--exclude 'tests/' \
--exclude 'phpunit.xml*' \
--exclude 'phpstan.neon*' \
--exclude 'composer.json' \
--exclude 'composer.lock' \
--exclude 'package.json' \
--exclude 'package-lock.json' \
--exclude '.gitignore' \
--exclude '.wporg' \
--exclude 'AGENTS.md' \
--exclude 'CLAUDE.md' \
--exclude 'CHANGELOG-*.md' \
--exclude 'docs/' \
"$PLUGIN_DIR/" "$STAGING/$PLUGIN_SLUG/"
rm -f "$ARTIFACT"
(cd "$STAGING" && zip -r -q "$ARTIFACT" "$PLUGIN_SLUG")
echo "Built $ARTIFACT (version $VERSION)."

View file

@ -1,5 +1,626 @@
== Changelog ==
= 1.1.5 =
_Release date: 2026-08-24_
**Changed**
* Manager (by ROBOTSTXT) detection uses the ecosystem presence constant `ROBOTSTXT_MANAGER_NOTICED` (Manager 1.6.2+) instead of scanning the installed-plugin list on every check; the plugin-list scan is kept as a fallback for older Manager versions and now also matches single-file Manager installs by basename
**Compatibility**
* WordPress: 4.0 - 7.1
* PHP: 5.6 - 8.5
* MariaDB: 10.6+
* Multisite: compatible (Per-site and Global modes)
**Tests**
* PHPUnit: 22 tests, 53 assertions (6 new tests covering both Manager-detection paths: presence constant and plugin-list fallback)
* WordPress Coding Standards, PHPCompatibilityWP (PHP 5.6 - 8.5), and PHPStan level 9: zero errors
* Environment: PHP 8.5.9, MariaDB 11.8.8
= 1.1.4 =
_Release date: 2026-08-20_
**Highlights**
* Security and compatibility review of the whole code base, with static analysis raised to PHPStan level 9
**Added**
* Development: PHPStan (level 9) with the WordPress stubs and the wp-compat rules, PHPUnit with the polyfills, and the missing PHPCS utilities; `bin/preflight.sh` runs every automatable pre-deploy check
* Tests: plugin header test suite (15 tests) verifying the required headers, the readme consistency (Stable tag, Requires at least, Requires PHP, Tested up to, License), the contributor order, the changelog URL, and the absence of the removed self-updater files
**Changed**
* Development: the full code base passes WordPress Coding Standards with zero errors and warnings, PHPStan level 9 with zero errors, and PHPCompatibilityWP for PHP 5.6 - 8.5 with zero errors
* Type safety: every parameter and return type documented (PHP 5.6-compatible phpDoc generics), all input paths narrowed before sanitization, and two always-dead branches removed (the logs list parameters column helper and the caller backtrace object check)
* License header of the main plugin file aligned with readme.txt ("GPL-3.0-or-later")
**Fixed**
* The User-Agent masking keeps the previous value when the regular expression replacement fails instead of returning null
* The Multisite main-site fallback (WordPress 4.8 and older) reads the network's blog_id only when it is set
**Security**
* Full review following OWASP and WordPress Plugin Security guidelines: capabilities, nonces, validation, sanitization, output escaping, database access, and uninstall cleanup re-audited with the new tooling; no vulnerabilities found, and the type hardening above was applied
**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
* Verified live: plugin active on the staging site with no PHP notices, warnings, or deprecated messages
* 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 for the floor versions
* PHPStan level 9 with the WordPress stubs: zero errors
= 1.1.3 =
_Release date: 2026-08-20_
**Highlights**
* Security and compatibility review of the 1.1.2 settings-save rewrite
**Security**
* Full review of the tab-scoped save handler (per-site and Network Admin) following OWASP and WordPress Plugin Security guidelines: nonce pairing, capability ordering (the capability check precedes every save branch, so site administrators cannot write network options in Global mode), tab whitelisting, hardcoded option names, per-value sanitization, and safe redirects with no open-redirect surface; all areas passed with no findings
**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
* PHPCompatibilityWP (PHP 5.6 - 8.5) and wp-since (WordPress 4.0) static reviews for the floor versions
= 1.1.2 =
_Release date: 2026-08-18_
**Highlights**
* Cross-tab settings saves fixed on the per-site Settings screen
**Fixed**
* Saving one tab of the per-site Settings screen no longer resets the other tabs: WordPress core sets every unposted option of a settings group to null since WordPress 5.5, so saving any tab was wiping the options of the other tabs back to their defaults (or, for the User-Agent mode, to the legacy pre-0.9 value). Each tab now saves through its own tab-scoped, nonce- and capability-protected handler shared with the Network Admin screen, updating only the options of the tab being saved
**Changed**
* The per-site Settings screen no longer posts through options.php; the Settings API registration of the options was removed along with it (the sanitizers are unchanged and still applied by the save handler)
**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
* Verified live: main tab values survive saves of the Plugins, Logs, and General tabs and vice versa; hidden plugins, retention, and uninstall options each preserved
* PHP Coding Standards: 3.13.6
* WordPress Coding Standards: 3.4.1
= 1.1.1 =
_Release date: 2026-08-18_
**Highlights**
* Security and reliability review of the 1.1.0 per-plugin Safe modes
**Added**
* The Plugins screen mode column is now a "Safe Mode" checkbox (checked = Safe, unchecked = Original) with an accessible hidden label and aria-label per row
**Fixed**
* The StellarWP telemetry blocks (iThemes Security, Kadence Blocks, The Events Calendar) are now actually applied: matchers without a host restriction were never reached, so those telemetry reports were silently sent despite Safe mode
**Changed**
* The profile registry is built once per request and cached, instead of being rebuilt on every outbound HTTP call
**Security**
* Full review of the new Plugins screen and Safe-mode guards (capabilities, nonces, multisite global-mode isolation, input whitelisting, output escaping, mock responses, caller attribution, uninstall cleanup) following OWASP and WordPress Plugin Security guidelines; no vulnerabilities found, and the findings above were addressed
**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
* Verified live: path-only matcher application, host scoping, path constraints, per-request cache
* 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 for the floor versions
= 1.1.0 =
_Release date: 2026-08-18_
**Highlights**
* Per-plugin Safe modes: the privacy reduction now extends beyond WordPress.org to the other installed plugins
**Added**
* "Plugins" screen (Telemetry → Plugins, and Network Admin → Telemetry → Plugins in Multisite global mode) listing every installed plugin with a known telemetry behavior in a table with the mode (Safe/Original per plugin, Safe by default), the plugin name, the installed version, the version the Safe profile was tested against, and the description of what is truncated; saved with a nonce- and capability-protected action
* Safe profiles for 99 popular plugins: usage trackers, analytics SDKs (Freemius, BSF analytics, Themeisle, Mixpanel, Appsero, StellarWP, WPMU DEV Hub), deactivation feedback surveys, and license-update extras are blocked or reduced to the minimum each service needs (license keys and account identifiers are kept), and the specific truncation is explained on every row
* Requests are attributed to the plugin that issues them through the caller backtrace, so endpoints shared by several plugins (api.wordpress.org, public-api.wordpress.com) never affect the others
**Changed**
* The Settings tab formerly shown as "Plugins" is now described as "Hidden plugins" to distinguish it from the new Plugins screen
**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
* Verified live: blocking, query/body/header/User-Agent stripping, caller attribution, Original mode bypass, fake-slug rejection in the save handler
* PHP Coding Standards: 3.13.6
* WordPress Coding Standards: 3.4.1
= 1.0.1 =
_Release date: 2026-08-18_
**Highlights**
* Security and reliability review of the 1.0.0 feature set
**Fixed**
* Saving the "Plugins" tab from the Network Admin no longer resets the other network settings to their defaults; the hidden plugins list can now actually be saved in Global mode
* Credentials embedded in URLs are now always stripped from the logs, including URLs without query strings
**Changed**
* The redaction of sensitive keys in the logs now also covers "api-key", "cookie", "session", "private-key", and "private_key"
* Documentation clarified: the WordPress version masking applies to the User-Agent only, and the version query parameters always send the real version
* Development: the Composer manifest now declares name, description, and license (dev tooling only; the plugin has no runtime dependencies)
**Security**
* Full review of capabilities, nonces, sanitization, escaping, uninstall cleanup, and log redaction following OWASP and WordPress Plugin Security guidelines; no vulnerabilities found in the audited areas, and the findings above were addressed
**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
* PHPCompatibilityWP (PHP 5.6 - 8.5) and wp-since (WordPress 4.0) static reviews for the floor versions
= 1.0.0 =
_Release date: 2026-08-18_
**Highlights**
* First stable release
**Changed**
* Version number bumped to 1.0.0 marking the feature set as stable: outbound HTTP request logging with secret redaction, Safe modes for the WordPress.org Core/Themes/Plugins update checks, per-plugin hiding, User-Agent and WordPress version controls, installation language masking, dashboard services replaced (news feed, events, browser check), log retention, and Multisite Per-site/Global configuration modes
**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
* PHPCompatibilityWP (PHP 5.6 - 8.5) and wp-since (WordPress 4.0) static reviews
= 0.10.0 =
_Release date: 2026-08-18_
**Highlights**
* Per-plugin privacy: choose exactly which plugins are reported to WordPress.org, in a new Plugins settings tab
**Added**
* "Plugins" settings tab (second position) listing every installed plugin in a native table: hide checkbox, status, plugin name (with its folder/file path), and version
* Checked plugins are excluded from the WordPress.org plugin update check in both Safe and Original modes: their plugin data, their entry in the active list, and their translation projects are never sent, which also means they stop receiving WordPress.org update notifications
* All plugins are unchecked by default, except Telemetry disabler (by ROBOTSTXT) which is always hidden and cannot be unchecked
* The tab explains the trade-off and recommends keeping external or private plugins (not hosted on WordPress.org) checked
* Works in per-site and global configurations (the list reflects the plugins of the current site)
**Changed**
* The WordPress version masking (0.9.0) is now applied to the User-Agent only; the version query parameters of the update and information APIs always send the real version so updates keep working
**Fixed**
* The User-Agent masking now also matches the trailing-slash form of the site URL used by the WordPress.org update checks (previously the slash could leak in "Do not send anything" mode)
**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.9.1 =
_Release date: 2026-08-18_
**Highlights**
* The Settings screen is organized in native WordPress tabs: Settings, Logs, and General
**Changed**
* Settings split into three tabs: "Settings" (privacy controls: User-Agent, WordPress version, language, dashboard services, update checks), "Logs" (log retention), and "General" (uninstall behavior)
* Each tab saves independently; saving one tab never modifies the options of the others (both in the per-site screen and the Network Admin one)
**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.9.0 =
_Release date: 2026-08-18_
**Highlights**
* Full control over what the User-Agent reveals: the site URL can be sent, hashed (default), or removed, and the WordPress version can be actual, major-only ("7.2.n"), or nulled ("0.0.0")
**Added**
* "Outbound requests" setting with three options: "Send your URL" (original behavior), "Send a hash" (default, replaces the site URL with a deterministic SHA-256 hash), and "Do not send anything" (removes the site identifier from the User-Agent)
* "WordPress version" setting with three options: "Actual version" (default), "Major version" (the first two segments plus ".n", for example "7.2.n"), and "Nulled version" ("0.0.0")
* The version masking applies to the User-Agent and to the WordPress.org version fields (core version check, plugin and theme information APIs)
* The checksum and translation requests always use the real version so core updates and language packs keep working
* Existing installations keep their previous behavior through an automatic migration of the former "Hash the site URL" boolean setting
**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.8.0 =
_Release date: 2026-08-18_
**Highlights**
* The dashboard stops talking to WordPress.org: the news feed and the events service are replaced by Fair services (enabled by default), and the browser check is disabled
**Added**
* "Replace the WordPress News feed" setting (enabled by default): the Events and News widget reads https://planet.fair.pm/atom.xml (WordPress Planet by Fair) instead of wordpress.org/news (also covers localized Rosetta feeds)
* "Replace the WordPress Events service" setting (enabled by default): the events requests are served by https://api.fair.pm/fair/v1/events (WordPress Events by The WP World), sending the same request data
* "Disable the WordPress browser check" setting (enabled by default): the api.wordpress.org/core/browse-happy/ endpoint is never contacted and the browser is always reported as up to date and secure, so no browser nag is shown
* New endpoint interception layer (`pre_http_request`) shared by the three features
**Fixed**
* The locale masking of 0.7.0 now also rewrites the locale query parameters of real requests; the previous implementation used a request-URL filter that WordPress does not provide
**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.7.0 =
_Release date: 2026-08-18_
**Highlights**
* The installation language can be hidden: outbound requests to WordPress.org report en_US instead of the real locale
**Added**
* "Send en_US as the language of outbound requests" setting (disabled by default)
* When enabled, the locale query parameters (core version check, credits, community events) and `request[locale]` parameters (plugin and theme information APIs) are rewritten to en_US, and the locale lists of the plugins and themes update checks are masked
* The translation endpoints (`api.wordpress.org/translations/*`) and the translation payloads of the update checks keep using the real language, so installed language packs keep receiving updates
* Works in both Safe and Original modes, in per-site and global configurations
**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.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_
**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_
**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_

File diff suppressed because it is too large Load diff

View file

@ -18,10 +18,10 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Analysis_Api_WordPress_Org' ) ) {
/**
* Build analysis sections for api.wordpress.org.
*
* @param array $log Log data.
* @return array
* @param array<string,mixed> $log Log data.
* @return array<string,string>
*/
public static function build_sections( array $log ): array {
public static function build_sections( $log ) {
$sections = array();
$query_params = Robotstxt_Telemetry_Analysis::extract_query_params( $log );
@ -40,10 +40,10 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Analysis_Api_WordPress_Org' ) ) {
/**
* Group query parameters.
*
* @param array $params Query parameters.
* @return array
* @param array<int|string,mixed> $params Query parameters.
* @return array<string,string>
*/
private static function group_query_params( array $params ): array {
private static function group_query_params( $params ) {
$sections = array();
$core_keys = array(
@ -96,10 +96,10 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Analysis_Api_WordPress_Org' ) ) {
/**
* Group body parameters.
*
* @param array $params Body parameters.
* @return array
* @param array<int|string,mixed> $params Body parameters.
* @return array<string,string>
*/
private static function group_body_params( array $params ): array {
private static function group_body_params( $params ) {
$sections = array();
if ( isset( $params['translations'] ) ) {
@ -114,8 +114,8 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Analysis_Api_WordPress_Org' ) ) {
}
if ( is_array( $translations ) ) {
$sections[ __( 'Translations', 'robotstxt-telemetry' ) ] = Robotstxt_Telemetry_Analysis::format_params_lines( $translations );
} else {
$sections[ __( 'Translations', 'robotstxt-telemetry' ) ] = Robotstxt_Telemetry_Analysis::format_params_lines( Robotstxt_Telemetry_Analysis::normalize_params( $translations ) );
} elseif ( is_scalar( $translations ) ) {
$sections[ __( 'Translations', 'robotstxt-telemetry' ) ] = (string) $translations;
}
}
@ -130,14 +130,16 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Analysis_Api_WordPress_Org' ) ) {
/**
* Extract bracketed parameters into a nested array.
*
* @param array $params Parameters (will be mutated).
* @param string $prefix Prefix name.
* @return array
* @param array<int|string,mixed> $params Parameters (will be mutated).
* @param string $prefix Prefix name.
* @return array<string,mixed>
*/
private static function pluck_bracketed( array &$params, string $prefix ): array {
private static function pluck_bracketed( &$params, $prefix ) {
$result = array();
foreach ( $params as $key => $value ) {
$key = (string) $key;
if ( 0 !== strpos( $key, $prefix . '[' ) ) {
continue;
}

View file

@ -18,11 +18,11 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Analysis' ) ) {
/**
* Build analysis sections for a log entry.
*
* @param array $log Log data.
* @return array
* @param array<string,mixed> $log Log data.
* @return array<string,string>
*/
public static function build_sections( array $log ): array {
$host = isset( $log['host'] ) ? strtolower( (string) $log['host'] ) : '';
public static function build_sections( $log ) {
$host = isset( $log['host'] ) && is_string( $log['host'] ) ? strtolower( $log['host'] ) : '';
if ( 'api.wordpress.org' === $host ) {
return Robotstxt_Telemetry_Analysis_Api_WordPress_Org::build_sections( $log );
@ -34,10 +34,10 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Analysis' ) ) {
/**
* Build generic analysis sections.
*
* @param array $log Log data.
* @return array
* @param array<string,mixed> $log Log data.
* @return array<string,string>
*/
private static function build_generic_sections( array $log ): array {
private static function build_generic_sections( $log ) {
$sections = array();
$query_params = self::extract_query_params( $log );
@ -58,22 +58,25 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Analysis' ) ) {
*
* Prefers the redacted query_json column over re-parsing the raw URL.
*
* @param array $log Log data.
* @return array
* @param array<string,mixed> $log Log data.
* @return array<int|string,mixed>
*/
public static function extract_query_params( array $log ): array {
if ( empty( $log['url'] ) && empty( $log['query_json'] ) ) {
public static function extract_query_params( $log ) {
$url = isset( $log['url'] ) && is_string( $log['url'] ) ? $log['url'] : '';
$query_json = isset( $log['query_json'] ) && is_string( $log['query_json'] ) ? $log['query_json'] : '';
if ( '' === $url && '' === $query_json ) {
return array();
}
if ( ! empty( $log['query_json'] ) ) {
$decoded = json_decode( $log['query_json'], true );
if ( '' !== $query_json ) {
$decoded = json_decode( $query_json, true );
if ( is_array( $decoded ) && ! empty( $decoded ) ) {
return $decoded;
return self::normalize_params( $decoded );
}
}
$parts = explode( '?', (string) $log['url'], 2 );
$parts = explode( '?', $url, 2 );
$query = isset( $parts[1] ) ? $parts[1] : '';
if ( '' === $query ) {
@ -86,14 +89,17 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Analysis' ) ) {
/**
* Extract parameters from the body.
*
* @param array $log Log data.
* @return array
* @param array<string,mixed> $log Log data.
* @return array<int|string,mixed>
*/
public static function extract_body_params( array $log ): array {
if ( ! empty( $log['body_json'] ) ) {
$decoded = json_decode( $log['body_json'], true );
public static function extract_body_params( $log ) {
$body_json = isset( $log['body_json'] ) && is_string( $log['body_json'] ) ? $log['body_json'] : '';
$raw_body = isset( $log['raw_body'] ) && is_string( $log['raw_body'] ) ? $log['raw_body'] : '';
if ( '' !== $body_json ) {
$decoded = json_decode( $body_json, true );
if ( is_array( $decoded ) ) {
return $decoded;
return self::normalize_params( $decoded );
}
if ( is_string( $decoded ) ) {
@ -101,20 +107,36 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Analysis' ) ) {
}
}
if ( ! empty( $log['raw_body'] ) ) {
return self::parse_query_string_flat( $log['raw_body'] );
if ( '' !== $raw_body ) {
return self::parse_query_string_flat( $raw_body );
}
return array();
}
/**
* Normalize a decoded parameter array to integer or string keys.
*
* @param array<mixed,mixed> $params Decoded parameters.
* @return array<int|string,mixed>
*/
public static function normalize_params( array $params ) {
$normalized = array();
foreach ( $params as $key => $value ) {
$normalized[ $key ] = $value;
}
return $normalized;
}
/**
* Parse a query string into a flat key/value array.
*
* @param string $query Query string.
* @return array
* @return array<string,string|array<int,string>>
*/
public static function parse_query_string_flat( string $query ): array {
public static function parse_query_string_flat( $query ) {
$params = array();
$pairs = explode( '&', $query );
@ -149,10 +171,10 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Analysis' ) ) {
/**
* Format parameters as line-per-entry output.
*
* @param array $params Parameters.
* @param array<int|string,mixed> $params Parameters.
* @return string
*/
public static function format_params_lines( array $params ): string {
public static function format_params_lines( $params ) {
$lines = array();
$flatten = self::flatten_params( $params );
@ -161,7 +183,15 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Analysis' ) ) {
$value = wp_json_encode( $value );
}
$lines[] = sprintf( '%s=%s', $key, $value );
if ( null === $value ) {
$value = '';
} elseif ( is_scalar( $value ) ) {
$value = (string) $value;
}
if ( is_string( $value ) ) {
$lines[] = sprintf( '%s=%s', $key, $value );
}
}
return implode( "\n", $lines );
@ -170,11 +200,11 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Analysis' ) ) {
/**
* Flatten nested parameters into bracketed keys.
*
* @param array $params Parameters to flatten.
* @param string|null $prefix Current prefix.
* @return array
* @param array<int|string,mixed> $params Parameters to flatten.
* @param string|null $prefix Current prefix.
* @return array<string,mixed>
*/
public static function flatten_params( array $params, ?string $prefix = null ): array {
public static function flatten_params( $params, $prefix = null ) {
$flat = array();
foreach ( $params as $key => $value ) {

View file

@ -15,42 +15,64 @@ if ( ! class_exists( 'Robotstxt_Telemetry_DB' ) ) {
*/
class Robotstxt_Telemetry_DB {
/**
* Maximum number of log entries kept, regardless of retention period.
*
* @var int
*/
const MAX_LOG_ROWS = 1000;
/**
* Whether the schema was checked in this request.
*
* @var bool
*/
private static bool $did_check = false;
private static $did_check = false;
/**
* Get the table name.
*
* In global mode all sites share the main site table.
*
* @return string
*/
public static function get_table_name(): string {
public static function get_table_name() {
global $wpdb;
if ( Robotstxt_Telemetry_Network::is_global() ) {
return $wpdb->get_blog_prefix( Robotstxt_Telemetry_Network::main_site_id() ) . 'robotstxt_telemetry_logs';
}
return $wpdb->prefix . 'robotstxt_telemetry_logs';
}
/**
* Activation hook.
*
* @return void
*/
public static function activate(): void {
public static function activate() {
self::create_table();
update_option( 'robotstxt_telemetry_db_version', ROBOTSTXT_TELEMETRY_DB_VERSION );
}
/**
* Ensure the database schema is up to date.
*
* @return void
*/
public static function maybe_upgrade(): void {
public static function maybe_upgrade() {
if ( self::$did_check ) {
return;
}
self::$did_check = true;
// In global mode the shared table belongs to the main site only.
if ( Robotstxt_Telemetry_Network::is_global() && ! is_main_site() ) {
return;
}
$installed_version = get_option( 'robotstxt_telemetry_db_version' );
if ( ROBOTSTXT_TELEMETRY_DB_VERSION !== $installed_version ) {
self::create_table();
@ -60,8 +82,10 @@ if ( ! class_exists( 'Robotstxt_Telemetry_DB' ) ) {
/**
* Create or update the logs table.
*
* @return void
*/
public static function create_table(): void {
public static function create_table() {
global $wpdb;
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
@ -97,9 +121,10 @@ if ( ! class_exists( 'Robotstxt_Telemetry_DB' ) ) {
/**
* Insert a log row.
*
* @param array $data Log data.
* @param array<string,mixed> $data Log data.
* @return void
*/
public static function insert_log( array $data ): void {
public static function insert_log( array $data ) {
global $wpdb;
$wpdb->insert( // phpcs:ignore WordPress.DB.DirectDatabaseQuery -- Insert into the plugin's custom table via the wpdb API.
@ -126,17 +151,16 @@ if ( ! class_exists( 'Robotstxt_Telemetry_DB' ) ) {
* Fetch a single log row.
*
* @param int $log_id Log ID.
* @return array|null
* @return array<string,mixed>|null
*/
public static function get_log( int $log_id ): ?array {
public static function get_log( $log_id ) {
global $wpdb;
$table_name = self::get_table_name();
$log = $wpdb->get_row( // phpcs:ignore WordPress.DB.DirectDatabaseQuery -- Custom table read via the wpdb API; single-row view is never cached.
$wpdb->prepare(
'SELECT * FROM %i WHERE id = %d',
$table_name,
"SELECT * FROM {$table_name} WHERE id = %d", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Table name is internal; the %i placeholder requires WordPress 6.2.
$log_id
),
ARRAY_A
@ -155,7 +179,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_DB' ) ) {
* @param int $log_id Log ID.
* @return bool
*/
public static function delete_log( int $log_id ): bool {
public static function delete_log( $log_id ) {
global $wpdb;
$deleted = $wpdb->delete( // phpcs:ignore WordPress.DB.DirectDatabaseQuery -- Delete from the plugin's custom table via the wpdb API.
@ -166,5 +190,65 @@ if ( ! class_exists( 'Robotstxt_Telemetry_DB' ) ) {
return false !== $deleted;
}
/**
* Delete all log rows.
*
* @return void
*/
public static function delete_all_logs() {
global $wpdb;
$table_name = self::get_table_name();
$wpdb->query( // phpcs:ignore WordPress.DB.DirectDatabaseQuery -- Delete from the plugin's custom table via the wpdb API.
"DELETE FROM {$table_name}" // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Table name is internal; the %i placeholder requires WordPress 6.2.
);
}
/**
* Delete logs according to the retention settings.
*
* Removes entries older than the configured retention period and
* keeps at most MAX_LOG_ROWS entries (newest first). Runs when the
* logs list is visited and twice daily via cron.
*
* @return void
*/
public static function cleanup() {
global $wpdb;
$table_name = self::get_table_name();
$retention = Robotstxt_Telemetry_Network::get_setting( 'robotstxt_telemetry_retention_period', '12hours' );
$periods = array(
'12hours' => 12 * HOUR_IN_SECONDS,
'1day' => DAY_IN_SECONDS,
'3days' => 3 * DAY_IN_SECONDS,
);
if ( is_string( $retention ) && isset( $periods[ $retention ] ) ) {
$cutoff = gmdate( 'Y-m-d H:i:s', time() - $periods[ $retention ] );
$wpdb->query( // phpcs:ignore WordPress.DB.DirectDatabaseQuery -- Delete from the plugin's custom table via the wpdb API.
$wpdb->prepare( "DELETE FROM {$table_name} WHERE created_at < %s", $cutoff ) // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Table name is internal; the %i placeholder requires WordPress 6.2.
);
}
// Keep only the newest MAX_LOG_ROWS entries.
$threshold_id = (int) $wpdb->get_var( // phpcs:ignore WordPress.DB.DirectDatabaseQuery -- Custom table read via the wpdb API; cleanup threshold lookup.
$wpdb->prepare(
"SELECT id FROM {$table_name} ORDER BY id DESC LIMIT 1 OFFSET %d", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Table name is internal; the %i placeholder requires WordPress 6.2.
self::MAX_LOG_ROWS - 1
)
);
if ( $threshold_id > 0 ) {
$wpdb->query( // phpcs:ignore WordPress.DB.DirectDatabaseQuery -- Delete from the plugin's custom table via the wpdb API.
$wpdb->prepare( "DELETE FROM {$table_name} WHERE id < %d", $threshold_id ) // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Table name is internal; the %i placeholder requires WordPress 6.2.
);
}
}
}
}

View file

@ -0,0 +1,190 @@
<?php
/**
* Endpoint rewrites and blocks.
*
* Intercepts outbound requests to WordPress.org services at the HTTP
* layer and, depending on the settings (all enabled by default):
*
* - Replaces the WordPress News feed with WordPress Planet by Fair.
* - Replaces the WordPress Events service with WordPress Events by
* The WP World, sending the same request data.
* - Blocks the Browse Happy browser check, answering that the browser
* is compatible.
*
* Also rewrites the locale query parameters when the installation
* language masking is enabled (the rewrite must happen at this layer
* because WordPress does not provide a request-URL filter).
*
* @package RobotstxtTelemetry
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'Robotstxt_Telemetry_Endpoints' ) ) {
/**
* Class Robotstxt_Telemetry_Endpoints
*/
class Robotstxt_Telemetry_Endpoints {
/**
* Replacement URL for the WordPress News feed.
*
* @var string
*/
const NEWS_FEED_URL = 'https://planet.fair.pm/atom.xml';
/**
* Replacement URL for the WordPress Events service.
*
* @var string
*/
const EVENTS_API_URL = 'https://api.fair.pm/fair/v1/events';
/**
* Register hooks.
*
* @return void
*/
public function register() {
add_filter( 'pre_http_request', array( $this, 'intercept' ), 10, 3 );
}
/**
* Intercept outbound WordPress.org requests.
*
* @param false|array<string,mixed>|WP_Error $preempt Short-circuit value from other filters.
* @param array{body?:string|array<mixed,mixed>,headers?:string|array<mixed,mixed>} $args HTTP request arguments.
* @param string $url Request URL.
* @return false|array<string,mixed>|WP_Error
*/
public function intercept( $preempt, $args, $url ) {
if ( false !== $preempt ) {
return $preempt;
}
$parsed = wp_parse_url( $url );
if ( empty( $parsed['host'] ) ) {
return $preempt;
}
$host = strtolower( $parsed['host'] );
$path = isset( $parsed['path'] ) ? $parsed['path'] : '';
if ( 'api.wordpress.org' === $host ) {
// Browse Happy: answer that the browser is compatible.
if ( 0 === stripos( $path, '/core/browse-happy' ) && $this->setting( 'robotstxt_telemetry_disable_browse_happy' ) ) {
return $this->mock_browse_happy_response();
}
// Events: proxy to the replacement service, same request data.
if ( 0 === stripos( $path, '/events' ) && $this->setting( 'robotstxt_telemetry_replace_events_api' ) ) {
$query = isset( $parsed['query'] ) ? '?' . $parsed['query'] : '';
return wp_remote_request( self::EVENTS_API_URL . $query, $args );
}
// Locale masking: proxy to the rewritten URL. The WordPress
// version is never masked in query parameters: the update
// and information APIs need the real version to work.
if ( 0 !== stripos( $path, '/translations' ) && $this->mask_locale_enabled() ) {
$masked = $this->mask_locale_url( $url );
if ( $masked !== $url ) {
return wp_remote_request( $masked, $args );
}
}
return $preempt;
}
// News feed: proxy to the replacement feed (also covers Rosetta hosts).
$is_wordpress_host = 'wordpress.org' === $host || '.wordpress.org' === substr( $host, -strlen( '.wordpress.org' ) );
if ( $is_wordpress_host && '/news/feed/' === $path && $this->setting( 'robotstxt_telemetry_replace_news_feed' ) ) {
return wp_remote_request( self::NEWS_FEED_URL, $args );
}
return $preempt;
}
/**
* Build a successful Browse Happy response marking the browser
* as up to date and secure, so no browser nag is shown.
*
* @return array<string,mixed>
*/
private function mock_browse_happy_response() {
$body = wp_json_encode(
array(
'platform' => 'other',
'name' => 'Browser',
'version' => '1.0',
'current_version' => '1.0',
'upgrade' => false,
'insecure' => false,
'update_url' => '',
'img_src' => '',
'img_src_ssl' => '',
)
);
return array(
'headers' => array(),
'body' => $body,
'response' => array(
'code' => 200,
'message' => 'OK',
),
'cookies' => array(),
'filename' => null,
);
}
/**
* Whether the installation language should be masked as en_US.
*
* @return bool
*/
private function mask_locale_enabled() {
return (bool) Robotstxt_Telemetry_Network::get_setting( 'robotstxt_telemetry_mask_locale', false );
}
/**
* Whether a feature setting is enabled.
*
* @param string $name Option name.
* @return bool
*/
private function setting( $name ) {
return (bool) Robotstxt_Telemetry_Network::get_setting( $name, true );
}
/**
* Replace the locale query parameters of a WordPress.org URL.
*
* Covers standalone `locale` parameters and `request[locale]`
* parameters (also URL-encoded).
*
* @param string $url Request URL.
* @return string
*/
private function mask_locale_url( $url ) {
$masked = preg_replace(
'/([?&](?:request(?:%5[Bb]|\[)locale(?:%5[Dd]|\])|locale)=)[^&]*/',
'${1}en_US',
$url,
-1,
$count
);
if ( $count > 0 && null !== $masked ) {
return $masked;
}
return $url;
}
}
}

View file

@ -20,38 +20,40 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
*
* @var int
*/
private int $max_json_bytes = 65535;
private $max_json_bytes = 65535;
/**
* Maximum raw body size to store.
*
* @var int
*/
private int $max_raw_body_bytes = 65535;
private $max_raw_body_bytes = 65535;
/**
* Maximum caller summary size.
*
* @var int
*/
private int $max_caller_bytes = 16000;
private $max_caller_bytes = 16000;
/**
* Register hooks.
*
* @return void
*/
public function register(): void {
public function register() {
add_filter( 'http_request_args', array( $this, 'capture_request' ), 10, 2 );
}
/**
* Capture outbound request arguments.
*
* @param array $args HTTP request arguments.
* @param string $url Request URL.
* @return array
* @param array<string,mixed> $args HTTP request arguments.
* @param string $url Request URL.
* @return array<string,mixed>
*/
public function capture_request( $args, $url ): array {
if ( empty( $url ) || ! is_array( $args ) ) {
public function capture_request( $args, $url ) {
if ( empty( $url ) ) {
return $args;
}
@ -61,7 +63,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
if ( ! empty( $log_data ) ) {
Robotstxt_Telemetry_DB::insert_log( $log_data );
}
} catch ( Throwable $exception ) {
} catch ( Exception $exception ) {
// Never interrupt outbound requests if logging fails.
do_action( 'robotstxt_telemetry_logging_failed', $exception, $args, $url );
}
@ -72,27 +74,31 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
/**
* Prepare log data for storage.
*
* @param array $args Request args.
* @param string $url Request URL.
* @return array
* @param array<string,mixed> $args Request args.
* @param string $url Request URL.
* @return array<string,mixed>
*/
private function prepare_log_data( array $args, string $url ): array {
$method = isset( $args['method'] ) ? strtoupper( sanitize_text_field( (string) $args['method'] ) ) : 'GET';
private function prepare_log_data( $args, $url ) {
$method = isset( $args['method'] ) && is_string( $args['method'] ) ? strtoupper( sanitize_text_field( $args['method'] ) ) : 'GET';
$url = esc_url_raw( $url );
$parsed_url = wp_parse_url( $url );
$host = isset( $parsed_url['host'] ) ? sanitize_text_field( $parsed_url['host'] ) : '';
$path = isset( $parsed_url['path'] ) ? sanitize_text_field( $parsed_url['path'] ) : '';
if ( ! is_array( $parsed_url ) ) {
$parsed_url = array();
}
$host = isset( $parsed_url['host'] ) ? sanitize_text_field( $parsed_url['host'] ) : '';
$path = isset( $parsed_url['path'] ) ? sanitize_text_field( $parsed_url['path'] ) : '';
$query_params = array();
if ( ! empty( $parsed_url['query'] ) ) {
$query_params = wp_parse_args( $parsed_url['query'] );
$query_params = $this->normalize_keys( wp_parse_args( $parsed_url['query'] ) );
}
$query_params = $this->redact_array( $query_params );
// Rebuild the URL with redacted query parameters and without credentials.
if ( ! empty( $parsed_url['query'] ) ) {
if ( ! empty( $parsed_url['query'] ) || ! empty( $parsed_url['user'] ) ) {
$redacted_url = $this->build_redacted_url( $parsed_url, http_build_query( $query_params ) );
if ( '' !== $redacted_url ) {
$url = $redacted_url;
@ -110,7 +116,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
if ( isset( $args['body'] ) ) {
$body_data = $args['body'];
if ( is_array( $body_data ) ) {
$redacted_body = $this->redact_array( $body_data );
$redacted_body = $this->redact_array( $this->normalize_keys( $body_data ) );
$body_json = $this->encode_json_limited( $redacted_body, $this->max_json_bytes );
if ( empty( $body_json ) ) {
@ -139,18 +145,16 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
}
}
$headers = $this->normalize_headers( $args['headers'] ?? array() );
$headers_args = isset( $args['headers'] ) && is_array( $args['headers'] ) ? $args['headers'] : array();
$headers = $this->normalize_headers( $headers_args );
$headers = $this->redact_array( $headers );
$headers_json = $this->encode_json_limited( $headers, $this->max_json_bytes );
$user_agent = $this->extract_user_agent( $args );
// phpcs:ignore WordPress.PHP.DevelopmentFunctions -- Needed for caller context logging.
$caller = wp_debug_backtrace_summary( null, 0, false );
if ( is_array( $caller ) || is_object( $caller ) ) {
$caller = wp_json_encode( $caller );
}
$caller = $this->truncate_string( (string) $caller, $this->max_caller_bytes );
$caller = wp_json_encode( $caller );
$caller = $this->truncate_string( is_string( $caller ) ? $caller : '', $this->max_caller_bytes );
return array(
'created_at' => current_time( 'mysql', true ),
@ -171,30 +175,31 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
/**
* Rebuild a URL with a redacted query string and without credentials.
*
* @param array $parts URL parts from wp_parse_url().
* @param string $query Redacted query string.
* @param array<string,mixed> $parts URL parts from wp_parse_url().
* @param string $query Redacted query string.
* @return string
*/
private function build_redacted_url( array $parts, string $query ): string {
$url = '';
private function build_redacted_url( $parts, $query ) {
$scheme = isset( $parts['scheme'] ) && is_string( $parts['scheme'] ) ? $parts['scheme'] : '';
$host = isset( $parts['host'] ) && is_string( $parts['host'] ) ? $parts['host'] : '';
if ( ! empty( $parts['scheme'] ) && ! empty( $parts['host'] ) ) {
$url = $parts['scheme'] . '://' . $parts['host'];
} else {
if ( '' === $scheme || '' === $host ) {
return '';
}
if ( ! empty( $parts['port'] ) ) {
$url .= ':' . (int) $parts['port'];
$url = $scheme . '://' . $host;
if ( isset( $parts['port'] ) && is_int( $parts['port'] ) ) {
$url .= ':' . $parts['port'];
}
$url .= $parts['path'] ?? '';
$url .= isset( $parts['path'] ) && is_string( $parts['path'] ) ? $parts['path'] : '';
if ( '' !== $query ) {
$url .= '?' . $query;
}
if ( ! empty( $parts['fragment'] ) ) {
if ( isset( $parts['fragment'] ) && is_string( $parts['fragment'] ) ) {
$url .= '#' . $parts['fragment'];
}
@ -205,9 +210,9 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
* Normalize request headers into a simple array.
*
* @param mixed $headers Headers value.
* @return array
* @return array<string,mixed>
*/
private function normalize_headers( $headers ): array {
private function normalize_headers( $headers ) {
if ( is_object( $headers ) && method_exists( $headers, 'getAll' ) ) {
$headers = $headers->getAll();
}
@ -229,20 +234,24 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
/**
* Extract the user agent from request args.
*
* @param array $args Request args.
* @param array<string,mixed> $args Request args.
* @return string|null
*/
private function extract_user_agent( array $args ): ?string {
private function extract_user_agent( $args ) {
$user_agent = '';
if ( isset( $args['user-agent'] ) ) {
$user_agent = (string) $args['user-agent'];
} elseif ( isset( $args['user_agent'] ) ) {
$user_agent = (string) $args['user_agent'];
} elseif ( isset( $args['headers']['user-agent'] ) ) {
$user_agent = (string) $args['headers']['user-agent'];
} elseif ( isset( $args['headers']['User-Agent'] ) ) {
$user_agent = (string) $args['headers']['User-Agent'];
if ( isset( $args['user-agent'] ) && is_string( $args['user-agent'] ) ) {
$user_agent = $args['user-agent'];
} elseif ( isset( $args['user_agent'] ) && is_string( $args['user_agent'] ) ) {
$user_agent = $args['user_agent'];
} elseif ( isset( $args['headers'] ) && is_array( $args['headers'] ) ) {
$headers = $args['headers'];
if ( isset( $headers['user-agent'] ) && is_string( $headers['user-agent'] ) ) {
$user_agent = $headers['user-agent'];
} elseif ( isset( $headers['User-Agent'] ) && is_string( $headers['User-Agent'] ) ) {
$user_agent = $headers['User-Agent'];
}
}
if ( '' === $user_agent ) {
@ -256,33 +265,49 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
* Parse body strings into arrays when possible.
*
* @param string $body Raw body.
* @return array|null
* @return array<int|string,mixed>|null
*/
private function parse_body_string( string $body ): ?array {
private function parse_body_string( $body ) {
$decoded = json_decode( $body, true );
if ( is_array( $decoded ) ) {
return $decoded;
return $this->normalize_keys( $decoded );
}
$parsed = wp_parse_args( $body );
if ( ! empty( $parsed ) ) {
return $parsed;
return $this->normalize_keys( $parsed );
}
return null;
}
/**
* Normalize an array to integer or string keys.
*
* @param array<mixed,mixed> $data Input array.
* @return array<int|string,mixed>
*/
private function normalize_keys( array $data ) {
$normalized = array();
foreach ( $data as $key => $value ) {
$normalized[ $key ] = $value;
}
return $normalized;
}
/**
* Redact sensitive keys in arrays.
*
* @param array $data Data to sanitize.
* @return array
* @param array<int|string,mixed> $data Data to sanitize.
* @return array<int|string,mixed>
*/
private function redact_array( array $data ): array {
private function redact_array( $data ) {
$redacted = array();
foreach ( $data as $key => $value ) {
$normalized_key = is_string( $key ) ? strtolower( $key ) : (string) $key;
$normalized_key = strtolower( (string) $key );
if ( $this->is_sensitive_key( $normalized_key ) ) {
$redacted[ $key ] = '[redacted]';
@ -306,7 +331,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
* @param string $key Key name.
* @return bool
*/
private function is_sensitive_key( string $key ): bool {
private function is_sensitive_key( $key ) {
$sensitive_keys = array(
'authorization',
'password',
@ -314,8 +339,13 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
'token',
'secret',
'api_key',
'api-key',
'apikey',
'nonce',
'cookie',
'session',
'private-key',
'private_key',
);
foreach ( $sensitive_keys as $sensitive_key ) {
@ -342,17 +372,19 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
return $value;
}
return sanitize_text_field( wp_json_encode( $value ) );
$encoded = wp_json_encode( $value );
return false === $encoded ? '' : sanitize_text_field( $encoded );
}
/**
* Encode JSON with size limits.
*
* @param array $data Data to encode.
* @param int $limit Max size in bytes.
* @param array<int|string,mixed> $data Data to encode.
* @param int $limit Max size in bytes.
* @return string|null
*/
private function encode_json_limited( array $data, int $limit ): ?string {
private function encode_json_limited( $data, $limit ) {
$encoded = wp_json_encode( $this->truncate_array_values( $data, 2048 ) );
if ( false === $encoded ) {
@ -369,11 +401,11 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
/**
* Truncate array values to keep payloads manageable.
*
* @param array $data Data to trim.
* @param int $max_len Max length per string value.
* @return array
* @param array<int|string,mixed> $data Data to trim.
* @param int $max_len Max length per string value.
* @return array<int|string,mixed>
*/
private function truncate_array_values( array $data, int $max_len ): array {
private function truncate_array_values( $data, $max_len ) {
$trimmed = array();
foreach ( $data as $key => $value ) {
@ -400,12 +432,17 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logger' ) ) {
* @param int $limit Max length in bytes.
* @return string
*/
private function truncate_string( string $value, int $limit ): string {
private function truncate_string( $value, $limit ) {
if ( strlen( $value ) > $limit ) {
$value = substr( $value, 0, $limit );
}
return wp_check_invalid_utf8( $value, true );
// wp_check_invalid_utf8() requires WordPress 4.2.3.
if ( function_exists( 'wp_check_invalid_utf8' ) ) {
return wp_check_invalid_utf8( $value, true );
}
return $value;
}
}
}

View file

@ -24,7 +24,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logs_Table' ) ) {
*
* @var int
*/
private int $per_page = 20;
private $per_page = 20;
/**
* Constructor.
@ -42,9 +42,9 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logs_Table' ) ) {
/**
* Get columns.
*
* @return array
* @return array<string,string>
*/
public function get_columns(): array {
public function get_columns() {
return array(
'created_at' => __( 'Date', 'robotstxt-telemetry' ),
'method' => __( 'Method', 'robotstxt-telemetry' ),
@ -55,8 +55,10 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logs_Table' ) ) {
/**
* Prepare items for display.
*
* @return void
*/
public function prepare_items(): void {
public function prepare_items() {
global $wpdb;
$table_name = Robotstxt_Telemetry_DB::get_table_name();
@ -79,14 +81,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logs_Table' ) ) {
$this->items = $wpdb->get_results( // phpcs:ignore WordPress.DB.DirectDatabaseQuery -- Custom table read via the wpdb API; list output is never cached.
$wpdb->prepare(
'SELECT * FROM %i
WHERE ( %s = \'\' OR method = %s )
AND ( %s = \'\' OR host = %s )
AND ( %s = \'\' OR created_at >= %s )
AND ( %s = \'\' OR created_at <= %s )
ORDER BY created_at DESC
LIMIT %d OFFSET %d',
$table_name,
"SELECT * FROM {$table_name} WHERE ( %s = '' OR method = %s ) AND ( %s = '' OR host = %s ) AND ( %s = '' OR created_at >= %s ) AND ( %s = '' OR created_at <= %s ) ORDER BY created_at DESC LIMIT %d OFFSET %d", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Table name is internal; the %i placeholder requires WordPress 6.2.
$method,
$method,
$host,
@ -103,12 +98,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logs_Table' ) ) {
$total = (int) $wpdb->get_var( // phpcs:ignore WordPress.DB.DirectDatabaseQuery -- Custom table read via the wpdb API; pagination count is never cached.
$wpdb->prepare(
'SELECT COUNT(*) FROM %i
WHERE ( %s = \'\' OR method = %s )
AND ( %s = \'\' OR host = %s )
AND ( %s = \'\' OR created_at >= %s )
AND ( %s = \'\' OR created_at <= %s )',
$table_name,
"SELECT COUNT(*) FROM {$table_name} WHERE ( %s = '' OR method = %s ) AND ( %s = '' OR host = %s ) AND ( %s = '' OR created_at >= %s ) AND ( %s = '' OR created_at <= %s )", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Table name is internal; the %i placeholder requires WordPress 6.2.
$method,
$method,
$host,
@ -131,18 +121,19 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logs_Table' ) ) {
/**
* Render default column output.
*
* @param array $item Column data.
* @param string $column_name Column name.
* @param array<string,mixed> $item Column data.
* @param string $column_name Column name.
* @return string
*/
public function column_default( $item, $column_name ): string {
public function column_default( $item, $column_name ) {
switch ( $column_name ) {
case 'created_at':
return esc_html( $item[ $column_name ] ?? '' );
case 'method':
case 'host':
case 'path':
return esc_html( $item[ $column_name ] ?? '' );
$value = isset( $item[ $column_name ] ) && is_string( $item[ $column_name ] ) ? $item[ $column_name ] : '';
return esc_html( $value );
default:
return '';
}
@ -151,11 +142,11 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logs_Table' ) ) {
/**
* Add row actions.
*
* @param array $item Item data.
* @param array<string,mixed> $item Item data.
* @return string
*/
public function column_created_at( $item ): string {
$log_id = (int) $item['id'];
public function column_created_at( $item ) {
$log_id = isset( $item['id'] ) && is_numeric( $item['id'] ) ? (int) $item['id'] : 0;
$view_url = add_query_arg(
array(
@ -163,7 +154,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logs_Table' ) ) {
'action' => 'view',
'log' => $log_id,
),
admin_url( 'admin.php' )
Robotstxt_Telemetry_Network::base_url()
);
$delete_url = wp_nonce_url(
@ -173,7 +164,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logs_Table' ) ) {
'action' => 'delete',
'log' => $log_id,
),
admin_url( 'admin.php' )
Robotstxt_Telemetry_Network::base_url()
),
'robotstxt_telemetry_delete_log_' . $log_id
);
@ -183,120 +174,44 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logs_Table' ) ) {
'delete' => '<a href="' . esc_url( $delete_url ) . '">' . esc_html__( 'Delete', 'robotstxt-telemetry' ) . '</a>',
);
return esc_html( $item['created_at'] ) . $this->row_actions( $actions );
$created_at = isset( $item['created_at'] ) && is_string( $item['created_at'] ) ? $item['created_at'] : '';
return esc_html( $created_at ) . $this->row_actions( $actions );
}
/**
* Render the URL column without query parameters.
*
* @param array $item Item data.
* @param array<string,mixed> $item Item data.
* @return string
*/
public function column_url( $item ): string {
if ( empty( $item['url'] ) ) {
public function column_url( $item ) {
$url = isset( $item['url'] ) && is_string( $item['url'] ) ? $item['url'] : '';
if ( '' === $url ) {
return '';
}
$parsed_url = wp_parse_url( $item['url'] );
if ( empty( $parsed_url ) || empty( $parsed_url['host'] ) ) {
return esc_html( $item['url'] );
$parsed_url = wp_parse_url( $url );
if ( ! is_array( $parsed_url ) || empty( $parsed_url['host'] ) ) {
return esc_html( $url );
}
$scheme = $parsed_url['scheme'] ?? 'https';
$path = $parsed_url['path'] ?? '';
$scheme = isset( $parsed_url['scheme'] ) ? $parsed_url['scheme'] : 'https';
$path = isset( $parsed_url['path'] ) ? $parsed_url['path'] : '';
$port = isset( $parsed_url['port'] ) ? ':' . (int) $parsed_url['port'] : '';
$base = sprintf( '%s://%s%s%s', $scheme, $parsed_url['host'], $port, $path );
return esc_html( $base );
}
/**
* Format parameters column output.
*
* @param array $item Item data.
* @return string
*/
private function format_params_column( array $item ): string {
$params = array();
if ( ! empty( $item['url'] ) ) {
$parsed_url = wp_parse_url( $item['url'] );
if ( ! empty( $parsed_url['query'] ) ) {
$fallback_query = wp_parse_args( $parsed_url['query'] );
$params = array_merge( $params, $fallback_query );
}
}
$query_params = $this->decode_json_params( $item['query_json'] ?? '' );
if ( ! empty( $query_params ) ) {
$params = array_merge( $params, $query_params );
}
$body_params = $this->decode_json_params( $item['body_json'] ?? '' );
if ( ! empty( $body_params ) ) {
$params = array_merge( $params, $body_params );
}
if ( empty( $body_params ) && ! empty( $item['raw_body'] ) ) {
$fallback_body = wp_parse_args( $item['raw_body'] );
if ( ! empty( $fallback_body ) ) {
$params = array_merge( $params, $fallback_body );
}
}
if ( empty( $params ) ) {
return '';
}
$lines = array();
foreach ( $params as $key => $value ) {
if ( is_array( $value ) ) {
$value = wp_json_encode( $value );
}
$lines[] = sprintf( '%s=%s', $key, $value );
}
return '<pre style="white-space: pre-wrap; margin: 0;">' . esc_html( implode( "\n", $lines ) ) . '</pre>';
}
/**
* Decode JSON parameters into arrays.
*
* @param string $value JSON string.
* @return array
*/
private function decode_json_params( string $value ): array {
if ( empty( $value ) ) {
return array();
}
$decoded = json_decode( $value, true );
if ( is_array( $decoded ) ) {
return $decoded;
}
if ( is_string( $decoded ) ) {
$parsed = wp_parse_args( $decoded );
if ( ! empty( $parsed ) ) {
return $parsed;
}
}
$parsed = wp_parse_args( $value );
if ( ! empty( $parsed ) ) {
return $parsed;
}
return array();
}
/**
* Extra controls for filtering.
*
* @param string $which Top or bottom.
* @return void
*/
public function extra_tablenav( $which ): void {
public function extra_tablenav( $which ) {
if ( 'top' !== $which ) {
return;
}
@ -354,9 +269,9 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logs_Table' ) ) {
* @param string $key Filter key.
* @return string
*/
private function get_filter_value( string $key ): string {
private function get_filter_value( $key ) {
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only list filters.
if ( ! isset( $_GET[ $key ] ) ) {
if ( ! isset( $_GET[ $key ] ) || ! is_string( $_GET[ $key ] ) ) {
return '';
}
@ -369,7 +284,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Logs_Table' ) ) {
* @param string|null $value Date string.
* @return string|null
*/
private function sanitize_date_filter( ?string $value ): ?string {
private function sanitize_date_filter( $value ) {
if ( empty( $value ) ) {
return null;
}

View file

@ -18,13 +18,6 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Manager_Notice' ) ) {
*/
class Robotstxt_Telemetry_Manager_Notice {
/**
* Manager plugin basename.
*
* @var string
*/
const MANAGER_PLUGIN_BASENAME = 'robotstxt-manager/robotstxt-manager.php';
/**
* User meta key storing the dismissal state.
*
@ -34,8 +27,10 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Manager_Notice' ) ) {
/**
* Register hooks.
*
* @return void
*/
public function register(): void {
public function register() {
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
add_action( 'admin_notices', array( $this, 'render_plugins_page_notice' ) );
add_action( 'network_admin_notices', array( $this, 'render_plugins_page_notice' ) );
@ -43,54 +38,80 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Manager_Notice' ) ) {
}
/**
* Whether the Manager (by ROBOTSTXT) plugin is active.
* Returns whether Manager (by ROBOTSTXT) is installed and active.
*
* @return bool
* Uses the ecosystem presence constant (Manager 1.6.2+) and falls back
* to a plugin-list scan for older Manager versions.
*
* @return bool True when Manager is present and activated.
*/
public static function is_manager_active(): bool {
if ( ! function_exists( 'is_plugin_active' ) ) {
public static function is_manager_active() {
if ( defined( 'ROBOTSTXT_MANAGER_NOTICED' ) && ROBOTSTXT_MANAGER_NOTICED ) {
return true;
}
if ( ! function_exists( 'get_plugins' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}
return is_plugin_active( self::MANAGER_PLUGIN_BASENAME )
|| is_plugin_active_for_network( self::MANAGER_PLUGIN_BASENAME );
foreach ( get_plugins() as $file => $data ) {
$slug = dirname( $file );
if ( '.' === $slug ) {
$slug = basename( $file, '.php' );
}
if ( 'robotstxt-manager' === $slug ) {
return is_plugin_active( $file );
}
}
return false;
}
/**
* Enqueue the inline dismissal script on the plugins list screen.
*
* @return void
*/
public function enqueue_scripts(): void {
public function enqueue_scripts() {
if ( ! $this->should_show_notice() ) {
return;
}
wp_enqueue_script( 'common' );
wp_add_inline_script(
'common',
'(function () {
document.addEventListener(
\'click\',
function ( event ) {
var notice = document.getElementById( \'robotstxt-telemetry-manager-notice\' );
if ( ! notice || ! event.target.closest( \'#robotstxt-telemetry-manager-notice .notice-dismiss\' ) ) {
return;
}
var data = new FormData();
data.append( \'action\', \'robotstxt_telemetry_dismiss_manager_notice\' );
data.append( \'nonce\', \'' . esc_js( wp_create_nonce( 'robotstxt_telemetry_manager_notice' ) ) . '\' );
fetch( window.ajaxurl, { method: \'POST\', credentials: \'same-origin\', body: data } );
$script = '(function () {
document.addEventListener(
\'click\',
function ( event ) {
var notice = document.getElementById( \'robotstxt-telemetry-manager-notice\' );
if ( ! notice || ! event.target.closest( \'#robotstxt-telemetry-manager-notice .notice-dismiss\' ) ) {
return;
}
);
})();',
'after'
);
var data = new FormData();
data.append( \'action\', \'robotstxt_telemetry_dismiss_manager_notice\' );
data.append( \'nonce\', \'' . esc_js( wp_create_nonce( 'robotstxt_telemetry_manager_notice' ) ) . '\' );
fetch( window.ajaxurl, { method: \'POST\', credentials: \'same-origin\', body: data } );
}
);
})();';
if ( function_exists( 'wp_add_inline_script' ) ) {
wp_add_inline_script( 'common', $script, 'after' );
return;
}
// WordPress 4.0 - 4.4 fallback.
echo '<script>' . $script . '</script>'; // phpcs:ignore WordPress.Security.EscapeOutput -- Static script with an escaped nonce.
}
/**
* Render the dismissible notice on the plugins list screen.
*
* @return void
*/
public function render_plugins_page_notice(): void {
public function render_plugins_page_notice() {
if ( ! $this->should_show_notice() ) {
return;
}
@ -100,8 +121,10 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Manager_Notice' ) ) {
/**
* Render a permanent notice for the settings screen.
*
* @return void
*/
public function render_settings_notice(): void {
public function render_settings_notice() {
$this->render_notice( 'notice-info', '' );
}
@ -110,8 +133,9 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Manager_Notice' ) ) {
*
* @param string $classes Extra CSS classes.
* @param string $id Optional DOM id for the notice container.
* @return void
*/
private function render_notice( string $classes, string $id ): void {
private function render_notice( $classes, $id ) {
if ( self::is_manager_active() ) {
return;
}
@ -123,7 +147,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Manager_Notice' ) ) {
wp_kses_post(
sprintf(
/* translators: 1: Manager plugin URL, 2: link text. */
__( 'To receive updates for Telemetry (by ROBOTSTXT), the <a href="%1$s">%2$s</a> plugin must be installed and active.', 'robotstxt-telemetry' ),
__( 'To receive updates for Telemetry disabler (by ROBOTSTXT), the <a href="%1$s">%2$s</a> plugin must be installed and active.', 'robotstxt-telemetry' ),
'https://www.robotstxt.software/plugins/robotstxt-manager/',
__( 'Manager (by ROBOTSTXT)', 'robotstxt-telemetry' )
)
@ -136,7 +160,7 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Manager_Notice' ) ) {
*
* @return bool
*/
private function should_show_notice(): bool {
private function should_show_notice() {
if ( ! current_user_can( 'manage_options' ) ) {
return false;
}
@ -155,8 +179,10 @@ if ( ! class_exists( 'Robotstxt_Telemetry_Manager_Notice' ) ) {
/**
* Persist the notice dismissal for the current user.
*
* @return void
*/
public function handle_dismiss(): void {
public function handle_dismiss() {
check_ajax_referer( 'robotstxt_telemetry_manager_notice' );
if ( ! current_user_can( 'manage_options' ) ) {

View file

@ -0,0 +1,323 @@
<?php
/**
* Configuration mode and settings helper.
*
* On Multisite the plugin can run in two modes, controlled from the
* Network Admin by a super administrator:
*
* - "per-site" (default): every site keeps its own settings and its own
* log table, managed by each site administrator.
* - "global": one shared configuration and one central log table (on the
* main site) collect the outbound requests of the whole network.
*
* @package RobotstxtTelemetry
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'Robotstxt_Telemetry_Network' ) ) {
/**
* Class Robotstxt_Telemetry_Network
*/
class Robotstxt_Telemetry_Network {
/**
* Option name storing the configuration mode.
*
* @var string
*/
const MODE_OPTION = 'robotstxt_telemetry_config_mode';
/**
* Plugin settings and their defaults.
*
* @var array<string,mixed>
*/
const SETTINGS = array(
'robotstxt_telemetry_useragent_url' => 'hash',
'robotstxt_telemetry_wp_version' => 'actual',
'robotstxt_telemetry_mask_locale' => false,
'robotstxt_telemetry_replace_news_feed' => true,
'robotstxt_telemetry_replace_events_api' => true,
'robotstxt_telemetry_disable_browse_happy' => true,
'robotstxt_telemetry_wp_core_check' => 'safe',
'robotstxt_telemetry_wp_themes_check' => 'safe',
'robotstxt_telemetry_wp_plugins_check' => 'safe',
'robotstxt_telemetry_hidden_plugins' => array(),
'robotstxt_telemetry_plugin_modes' => array(),
'robotstxt_telemetry_retention_period' => '12hours',
'robotstxt_telemetry_delete_on_uninstall' => false,
);
/**
* Whether the network runs in global mode.
*
* @return bool
*/
public static function is_global() {
return is_multisite() && 'global' === get_site_option( self::MODE_OPTION, 'per-site' );
}
/**
* Whether the current request is a Network Admin screen.
*
* @return bool
*/
public static function is_network_admin() {
return is_network_admin();
}
/**
* Capability required to manage the plugin on the current screen.
*
* @return string
*/
public static function manage_capability() {
return self::is_network_admin() ? 'manage_network_options' : 'manage_options';
}
/**
* Base admin URL for the current screen context.
*
* @return string
*/
public static function base_url() {
return self::is_network_admin() ? network_admin_url( 'admin.php' ) : admin_url( 'admin.php' );
}
/**
* Read a plugin setting honoring the configuration mode.
*
* @param string $name Option name.
* @param mixed $default_value Default value.
* @return mixed
*/
public static function get_setting( $name, $default_value = null ) {
if ( self::is_global() ) {
return get_site_option( $name, $default_value );
}
return get_option( $name, $default_value );
}
/**
* Write a plugin setting honoring the configuration mode.
*
* @param string $name Option name.
* @param mixed $value Value.
* @return bool
*/
public static function update_setting( $name, $value ) {
if ( self::is_global() ) {
return update_site_option( $name, $value );
}
return update_option( $name, $value );
}
/**
* Delete a plugin setting honoring the configuration mode.
*
* @param string $name Option name.
* @return bool
*/
public static function delete_setting( $name ) {
if ( self::is_global() ) {
return delete_site_option( $name );
}
return delete_option( $name );
}
/**
* The main site ID of the current network.
*
* On WordPress 4.8 and older the current network object exposes the
* main site ID through its magic "blog_id" property.
*
* @return int
*/
public static function main_site_id() {
if ( function_exists( 'get_main_site_id' ) ) {
return (int) get_main_site_id();
}
$current_site = get_current_site();
$blog_id = isset( $current_site->blog_id ) ? (int) $current_site->blog_id : 0;
return max( 1, $blog_id );
}
/**
* All site IDs of the network.
*
* @return int[]
*/
public static function get_site_ids() {
if ( function_exists( 'get_sites' ) ) {
$sites = get_sites(
array(
'fields' => 'ids',
'number' => 0,
)
);
return array_map( 'intval', $sites );
}
// WordPress 3.7 - 4.5 fallback.
$site_ids = array();
// phpcs:ignore WordPress.WP.DeprecatedFunctions.wp_get_sitesFound -- Only called when get_sites() is unavailable (WordPress 3.7 - 4.5).
foreach ( (array) wp_get_sites( array( 'limit' => 100000 ) ) as $site ) {
if ( ! empty( $site['blog_id'] ) ) {
$site_ids[] = (int) $site['blog_id'];
}
}
return $site_ids;
}
/**
* Sanitize the configuration mode value.
*
* @param mixed $value Raw input value.
* @return string
*/
public static function sanitize_mode( $value ) {
return 'global' === $value ? 'global' : 'per-site';
}
/**
* The plugin basenames never sent to the WordPress.org update check.
*
* The telemetry plugin itself is always included.
*
* @return string[]
*/
public static function get_hidden_plugins() {
$stored = self::get_setting( 'robotstxt_telemetry_hidden_plugins', array() );
$hidden = array();
if ( is_array( $stored ) ) {
foreach ( $stored as $basename ) {
if ( is_string( $basename ) ) {
$hidden[] = $basename;
}
}
}
$hidden[] = 'robotstxt-telemetry/robotstxt-telemetry.php';
return array_values( array_unique( $hidden ) );
}
/**
* Get the per-plugin safe-mode map (slug => safe|original).
*
* @return array<string,string>
*/
public static function get_plugin_modes() {
$stored = self::get_setting( 'robotstxt_telemetry_plugin_modes', array() );
if ( ! is_array( $stored ) ) {
return array();
}
$modes = array();
foreach ( $stored as $slug => $mode ) {
if ( is_string( $slug ) && is_string( $mode ) ) {
$modes[ $slug ] = $mode;
}
}
return $modes;
}
/**
* Get the mode of a single plugin (Safe by default).
*
* @param string $slug Plugin slug.
* @return string
*/
public static function get_plugin_mode( $slug ) {
$modes = self::get_plugin_modes();
return isset( $modes[ $slug ] ) && 'original' === $modes[ $slug ] ? 'original' : 'safe';
}
/**
* The User-Agent URL mode: 'url', 'hash' (default), or 'none'.
*
* Falls back to the legacy boolean option when the new option is
* not set yet, so existing installations keep their behavior.
*
* @return string
*/
public static function get_useragent_url_mode() {
$mode = self::get_setting( 'robotstxt_telemetry_useragent_url', '' );
if ( in_array( $mode, array( 'url', 'hash', 'none' ), true ) ) {
return $mode;
}
$legacy = self::get_setting( 'robotstxt_telemetry_hash_useragent_url', true );
return (bool) $legacy ? 'hash' : 'url';
}
/**
* The WordPress version mode: 'actual' (default), 'major', or 'nulled'.
*
* @return string
*/
public static function get_wp_version_mode() {
$mode = self::get_setting( 'robotstxt_telemetry_wp_version', 'actual' );
return in_array( $mode, array( 'actual', 'major', 'nulled' ), true ) ? $mode : 'actual';
}
/**
* Mask a WordPress version value according to the mode.
*
* 'major' keeps the first two segments and replaces the rest with
* an "n" (for example "6.9.1" becomes "6.9.n", "7.0" becomes
* "7.0.n"); 'nulled' always returns "0.0.0".
*
* @param string $version Version value.
* @param string $mode Version mode.
* @return string
*/
public static function mask_wp_version( $version, $mode ) {
if ( 'nulled' === $mode ) {
return '0.0.0';
}
if ( 'major' === $mode && preg_match( '/^(\d+\.\d+)/', (string) $version, $matches ) ) {
return $matches[1] . '.n';
}
return (string) $version;
}
/**
* Seed the network settings from the main site when switching to
* global mode, so the network keeps behaving like the main site.
*
* @return void
*/
public static function seed_network_settings() {
$main_site_id = self::main_site_id();
foreach ( self::SETTINGS as $name => $default ) {
if ( false === get_site_option( $name, false ) ) {
update_site_option( $name, get_blog_option( $main_site_id, $name, $default ) );
}
}
}
}
}

View file

@ -0,0 +1,375 @@
<?php
/**
* Per-plugin safe-mode enforcement.
*
* @package RobotstxtTelemetry
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'Robotstxt_Telemetry_Plugin_Guards' ) ) {
/**
* Class Robotstxt_Telemetry_Plugin_Guards
*
* Applies the per-plugin Safe profiles: telemetry endpoints are blocked
* with a mock response, and environment parameters are stripped from the
* requests of the plugins running in Safe mode. Requests are attributed
* to a plugin through the caller backtrace.
*/
class Robotstxt_Telemetry_Plugin_Guards {
/**
* Re-entry guard for the proxy pattern.
*
* @var bool
*/
private static $busy = false;
/**
* Register hooks.
*
* @return void
*/
public function register() {
add_filter( 'pre_http_request', array( $this, 'apply_guards' ), 4, 3 );
}
/**
* Apply the Safe profiles to an outbound request.
*
* @param false|array<string,mixed>|WP_Error $preempt Preempt value.
* @param array{body?:string|array<mixed,mixed>,headers?:string|array<mixed,mixed>,user-agent?:string} $args Request arguments.
* @param string $url Request URL.
* @return false|array<string,mixed>|WP_Error
*/
public function apply_guards( $preempt, $args, $url ) {
if ( false !== $preempt || self::$busy ) {
return $preempt;
}
$parsed = wp_parse_url( $url );
if ( empty( $parsed['host'] ) ) {
return $preempt;
}
$candidates = $this->match_profiles( $parsed['host'], isset( $parsed['path'] ) ? $parsed['path'] : '' );
if ( empty( $candidates ) ) {
return $preempt;
}
$slug = $this->find_calling_plugin( array_keys( $candidates ) );
if ( '' === $slug ) {
return $preempt;
}
$modified = false;
foreach ( $candidates[ $slug ] as $matcher ) {
$action = isset( $matcher['do'] ) ? $matcher['do'] : '';
if ( 'block' === $action ) {
return $this->mock_response( isset( $matcher['mock'] ) ? $matcher['mock'] : '{}' );
}
if ( 'strip_query' === $action ) {
$new_url = $this->strip_query_keys( $url, isset( $matcher['keys'] ) ? $matcher['keys'] : array() );
if ( $new_url !== $url ) {
$url = $new_url;
$modified = true;
}
continue;
}
if ( 'strip_body' === $action ) {
$new_body = $this->strip_body_keys( $args, isset( $matcher['keys'] ) ? $matcher['keys'] : array() );
if ( is_string( $new_body ) || is_array( $new_body ) ) {
$args['body'] = $new_body;
$modified = true;
}
continue;
}
if ( 'strip_headers' === $action ) {
$new_headers = $this->strip_header_keys( $args, isset( $matcher['headers'] ) ? $matcher['headers'] : array() );
if ( null !== $new_headers ) {
$args['headers'] = $new_headers;
$modified = true;
}
continue;
}
if ( 'strip_ua' === $action ) {
$new_ua = $this->strip_user_agent( $args );
if ( null !== $new_ua ) {
$args['user-agent'] = $new_ua;
$modified = true;
}
continue;
}
}
if ( ! $modified ) {
return $preempt;
}
self::$busy = true;
$response = wp_remote_request( $url, $args );
self::$busy = false;
return $response;
}
/**
* Find the profiles whose matchers apply to this host and path.
*
* @param string $host Request host.
* @param string $path Request path.
* @return array<string,array<int,array{host?:string,host_contains?:string,path?:string,do?:string,keys?:string[],headers?:string[],mock?:string}>> Slug => list of matching matchers.
*/
private function match_profiles( $host, $path ) {
$candidates = array();
$profiles = Robotstxt_Telemetry_Plugin_Profiles::get_profiles();
foreach ( $profiles as $slug => $profile ) {
if ( 'safe' !== Robotstxt_Telemetry_Network::get_plugin_mode( $slug ) ) {
continue;
}
foreach ( $profile['matchers'] as $matcher ) {
if ( ! $this->host_matches( $host, $matcher ) ) {
continue;
}
if ( isset( $matcher['path'] ) && ! preg_match( $matcher['path'], $path ) ) {
continue;
}
$candidates[ $slug ][] = $matcher;
}
}
return $candidates;
}
/**
* Whether a matcher applies to the request host.
*
* Matchers without a host restriction (path-only) apply to any host;
* the caller attribution keeps them scoped to their own plugin.
*
* @param string $host Request host.
* @param array{host?:string,host_contains?:string} $matcher Matcher.
* @return bool
*/
private function host_matches( $host, $matcher ) {
if ( isset( $matcher['host'] ) ) {
return strtolower( $host ) === strtolower( $matcher['host'] );
}
if ( isset( $matcher['host_contains'] ) ) {
return false !== strpos( strtolower( $host ), strtolower( $matcher['host_contains'] ) );
}
return true;
}
/**
* Find which of the candidate plugins issued the request.
*
* @param array<int,string> $slugs Candidate plugin slugs.
* @return string Plugin slug or an empty string.
*/
private function find_calling_plugin( $slugs ) {
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_debug_backtrace -- File paths are required to attribute the request to its calling plugin.
$backtrace = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS );
foreach ( $backtrace as $frame ) {
if ( empty( $frame['file'] ) ) {
continue;
}
$file = str_replace( '\\', '/', $frame['file'] );
foreach ( $slugs as $slug ) {
if ( false !== strpos( $file, '/plugins/' . $slug . '/' ) ) {
return $slug;
}
}
}
return '';
}
/**
* Build a mock response for a blocked endpoint.
*
* @param string $body Mock body.
* @return array<string,mixed>
*/
private function mock_response( $body ) {
return array(
'headers' => array(),
'body' => $body,
'response' => array(
'code' => 200,
'message' => 'OK',
),
'cookies' => array(),
'filename' => '',
);
}
/**
* Remove keys from the URL query string.
*
* @param string $url Request URL.
* @param array<int,string> $keys Keys to remove.
* @return string
*/
private function strip_query_keys( $url, $keys ) {
$parts = explode( '?', $url, 2 );
if ( count( $parts ) < 2 ) {
return $url;
}
$query = wp_parse_args( $parts[1] );
$lower = array_map( 'strtolower', array_values( $keys ) );
$kept = array();
foreach ( $query as $key => $value ) {
if ( ! in_array( strtolower( (string) $key ), $lower, true ) ) {
$kept[ $key ] = $value;
}
}
$rebuilt = http_build_query( $kept );
return '' === $rebuilt ? $parts[0] : $parts[0] . '?' . $rebuilt;
}
/**
* Remove keys from the request body.
*
* Returns null when nothing changed.
*
* @param array<string,mixed> $args Request arguments.
* @param array<int,string> $keys Keys to remove.
* @return mixed|null
*/
private function strip_body_keys( $args, $keys ) {
if ( ! isset( $args['body'] ) ) {
return null;
}
$body = $args['body'];
if ( is_array( $body ) ) {
$stripped = $this->remove_keys( $body, $keys );
return $stripped === $body ? null : $stripped;
}
if ( ! is_string( $body ) || '' === $body ) {
return null;
}
$decoded = json_decode( $body, true );
if ( is_array( $decoded ) ) {
$stripped = $this->remove_keys( $decoded, $keys );
if ( $stripped === $decoded ) {
return null;
}
return wp_json_encode( $stripped );
}
$parsed = wp_parse_args( $body );
if ( empty( $parsed ) ) {
return null;
}
$stripped = $this->remove_keys( $parsed, $keys );
if ( $stripped === $parsed ) {
return null;
}
return http_build_query( $stripped );
}
/**
* Remove keys from an array (case-insensitive).
*
* @param array<mixed> $data Source array.
* @param array<int,string> $keys Keys to remove.
* @return array<mixed>
*/
private function remove_keys( $data, $keys ) {
$lower = array_map( 'strtolower', array_values( $keys ) );
$kept = array();
foreach ( $data as $key => $value ) {
if ( in_array( strtolower( (string) $key ), $lower, true ) ) {
continue;
}
$kept[ $key ] = $value;
}
return $kept;
}
/**
* Remove headers from the request arguments.
*
* @param array<string,mixed> $args Request arguments.
* @param array<int,string> $headers Header names to remove.
* @return array<mixed>|null
*/
private function strip_header_keys( $args, $headers ) {
if ( ! isset( $args['headers'] ) || ! is_array( $args['headers'] ) ) {
return null;
}
$lower = array_map( 'strtolower', array_values( $headers ) );
$kept = array();
$found = false;
foreach ( $args['headers'] as $name => $value ) {
if ( in_array( strtolower( (string) $name ), $lower, true ) ) {
$found = true;
continue;
}
$kept[ $name ] = $value;
}
return $found ? $kept : null;
}
/**
* Reduce a WordPress User-Agent to "WordPress/<version>".
*
* Returns null when there is nothing to strip.
*
* @param array<string,mixed> $args Request arguments.
* @return string|null
*/
private function strip_user_agent( $args ) {
if ( ! isset( $args['user-agent'] ) || ! is_string( $args['user-agent'] ) ) {
return null;
}
$ua = $args['user-agent'];
if ( preg_match( '#^([^;]+)#', $ua, $matches ) ) {
$trimmed = preg_replace( '#/\d+$#', '', $matches[1] );
if ( $trimmed !== $ua ) {
return $trimmed;
}
}
return null;
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,457 @@
<?php
/**
* WordPress.org API privacy filters.
*
* Applies the "safe" modes for the WordPress.org core, themes, and plugins
* update check requests, limiting the transmitted data to the minimum
* required to keep receiving updates.
*
* @package RobotstxtTelemetry
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'Robotstxt_Telemetry_WordPress_Api' ) ) {
/**
* Class Robotstxt_Telemetry_WordPress_Api
*/
class Robotstxt_Telemetry_WordPress_Api {
/**
* Option name for the core version check mode.
*
* @var string
*/
const OPT_CORE = 'robotstxt_telemetry_wp_core_check';
/**
* Option name for the themes update check mode.
*
* @var string
*/
const OPT_THEMES = 'robotstxt_telemetry_wp_themes_check';
/**
* Option name for the plugins update check mode.
*
* @var string
*/
const OPT_PLUGINS = 'robotstxt_telemetry_wp_plugins_check';
/**
* Register hooks.
*
* @return void
*/
public function register() {
add_filter( 'core_version_check_query_args', array( $this, 'filter_core_query_args' ) );
add_filter( 'http_request_args', array( $this, 'filter_request_args' ), 10, 2 );
}
/**
* Limit the core version check query arguments in safe mode.
*
* @param array<string,mixed> $query Query arguments.
* @return array<string,mixed>
*/
public function filter_core_query_args( $query ) {
if ( ! $this->is_safe( self::OPT_CORE ) ) {
return $query;
}
$allowed = array( 'version', 'php', 'locale', 'mysql', 'channel' );
$query = array_intersect_key( $query, array_flip( $allowed ) );
if ( isset( $query['mysql'] ) && is_string( $query['mysql'] ) ) {
// Reduce the raw server version to "x.y.z-Variant", dropping
// distribution and logging suffixes (e.g. "11.8.8-MariaDB-ubu2404-log").
$query['mysql'] = preg_replace( '/^([^-]+-[^-]+).*$/', '$1', $query['mysql'] );
}
return $query;
}
/**
* Filter update check request arguments.
*
* @param array<string,mixed> $args HTTP request arguments.
* @param string $url Request URL.
* @return array<string,mixed>
*/
public function filter_request_args( $args, $url ) {
$parsed = wp_parse_url( $url );
if ( ! isset( $parsed['host'] ) || 'api.wordpress.org' !== strtolower( $parsed['host'] ) ) {
return $args;
}
$path = isset( $parsed['path'] ) ? $parsed['path'] : '';
// The translations endpoints need the real locale to work.
if ( $this->mask_locale_enabled() && 0 !== stripos( $path, '/translations' ) ) {
$args = $this->mask_locale_in_body( $args );
}
if ( 0 === stripos( $path, '/core/version-check' ) ) {
return $this->filter_core_request( $args );
}
if ( 0 === stripos( $path, '/themes/update-check' ) ) {
return $this->filter_themes_request( $args );
}
if ( 0 === stripos( $path, '/plugins/update-check' ) ) {
$args = $this->exclude_hidden_plugins( $args );
return $this->filter_plugins_request( $args );
}
return $args;
}
/**
* Strip site-identifying data from the core version check in safe mode.
*
* Removes the wp_install/wp_blog headers and reduces the translations
* payload to its project dates.
*
* @param array<string,mixed> $args HTTP request arguments.
* @return array<string,mixed>
*/
private function filter_core_request( $args ) {
if ( ! $this->is_safe( self::OPT_CORE ) ) {
return $args;
}
if ( isset( $args['headers'] ) && is_array( $args['headers'] ) ) {
unset( $args['headers']['wp_install'], $args['headers']['wp_blog'] );
}
if ( isset( $args['body'] ) && is_array( $args['body'] ) && isset( $args['body']['translations'] ) && is_string( $args['body']['translations'] ) ) {
$args['body']['translations'] = $this->filter_translations( $args['body']['translations'] );
}
return $args;
}
/**
* Limit the themes update check payload in safe mode.
*
* @param array<string,mixed> $args HTTP request arguments.
* @return array<string,mixed>
*/
private function filter_themes_request( $args ) {
if ( ! $this->is_safe( self::OPT_THEMES ) ) {
return $args;
}
if ( ! isset( $args['body'] ) || ! is_array( $args['body'] ) || ! isset( $args['body']['themes'] ) || ! is_string( $args['body']['themes'] ) ) {
return $args;
}
$data = json_decode( $args['body']['themes'], true );
if ( ! is_array( $data ) || empty( $data['themes'] ) || ! is_array( $data['themes'] ) ) {
return $args;
}
$themes = array();
foreach ( $data['themes'] as $stylesheet => $fields ) {
if ( is_array( $fields ) ) {
$themes[ $stylesheet ] = $this->hash_update_uri(
$this->keep_fields(
$fields,
array( 'name', 'version', 'updateuri', 'template', 'stylesheet' )
)
);
}
}
if ( empty( $themes ) ) {
return $args;
}
$args['body'] = array(
'themes' => wp_json_encode( array( 'themes' => $themes ) ),
'translations' => $this->filter_translations( $this->body_field( $args, 'translations', '' ) ),
'locale' => $this->body_field( $args, 'locale', '[]' ),
);
return $args;
}
/**
* Limit the plugins update check payload in safe mode.
*
* @param array<string,mixed> $args HTTP request arguments.
* @return array<string,mixed>
*/
private function filter_plugins_request( $args ) {
if ( ! $this->is_safe( self::OPT_PLUGINS ) ) {
return $args;
}
if ( ! isset( $args['body'] ) || ! is_array( $args['body'] ) || ! isset( $args['body']['plugins'] ) || ! is_string( $args['body']['plugins'] ) ) {
return $args;
}
$data = json_decode( $args['body']['plugins'], true );
if ( ! is_array( $data ) || empty( $data['plugins'] ) || ! is_array( $data['plugins'] ) ) {
return $args;
}
$plugins = array();
foreach ( $data['plugins'] as $basename => $fields ) {
if ( is_array( $fields ) ) {
$plugins[ $basename ] = $this->hash_update_uri(
$this->keep_fields(
$fields,
array( 'updateuri', 'version', 'requireswp', 'requiresphp', 'requiresplugins' )
)
);
}
}
if ( empty( $plugins ) ) {
return $args;
}
$args['body'] = array(
'plugins' => wp_json_encode( array( 'plugins' => $plugins ) ),
'translations' => $this->filter_translations( $this->body_field( $args, 'translations', '' ) ),
'locale' => $this->body_field( $args, 'locale', '[]' ),
'all' => $this->body_field( $args, 'all', 'true' ),
);
return $args;
}
/**
* Remove the hidden plugins from the update check payload.
*
* Applies in both Safe and Original modes: the checked plugins are
* never reported to WordPress.org (neither their plugin data, nor
* the active list, nor their translation projects), which also
* means they stop receiving WordPress.org update notifications.
*
* @param array<string,mixed> $args HTTP request arguments.
* @return array<string,mixed>
*/
private function exclude_hidden_plugins( $args ) {
$hidden = Robotstxt_Telemetry_Network::get_hidden_plugins();
if ( empty( $hidden ) || ! isset( $args['body'] ) || ! is_array( $args['body'] ) || empty( $args['body']['plugins'] ) || ! is_string( $args['body']['plugins'] ) ) {
return $args;
}
$data = json_decode( $args['body']['plugins'], true );
if ( ! is_array( $data ) ) {
return $args;
}
$hidden_slugs = array();
foreach ( $hidden as $basename ) {
$slug = dirname( $basename );
$hidden_slugs[ $slug ] = true;
if ( isset( $data['plugins'] ) && is_array( $data['plugins'] ) ) {
unset( $data['plugins'][ $basename ] );
}
if ( isset( $data['active'] ) && is_array( $data['active'] ) ) {
unset( $data['active'][ $basename ] );
}
}
if ( isset( $args['body']['translations'] ) && is_string( $args['body']['translations'] ) ) {
$translations = json_decode( $args['body']['translations'], true );
if ( is_array( $translations ) ) {
foreach ( array_keys( $translations ) as $slug ) {
if ( isset( $hidden_slugs[ $slug ] ) ) {
unset( $translations[ $slug ] );
}
}
$args['body']['translations'] = wp_json_encode( $translations );
}
}
$args['body']['plugins'] = wp_json_encode( $data );
return $args;
}
/**
* Whether the installation language should be masked as en_US.
*
* @return bool
*/
private function mask_locale_enabled() {
return (bool) Robotstxt_Telemetry_Network::get_setting( 'robotstxt_telemetry_mask_locale', false );
}
/**
* Replace the locale field of a WordPress.org request body.
*
* Handles the JSON-encoded locale arrays of the update checks
* (for example `["es_ES","en_US"]`) and plain locale strings.
*
* @param array<string,mixed> $args HTTP request arguments.
* @return array<string,mixed>
*/
private function mask_locale_in_body( $args ) {
if ( ! isset( $args['body'] ) || ! is_array( $args['body'] ) || ! isset( $args['body']['locale'] ) ) {
return $args;
}
$locale = $args['body']['locale'];
if ( is_string( $locale ) ) {
$decoded = json_decode( $locale, true );
if ( is_array( $decoded ) ) {
$masked = array();
foreach ( $decoded as $single_locale ) {
$masked[] = 'en_US';
}
$args['body']['locale'] = wp_json_encode( array_values( array_unique( $masked ) ) );
return $args;
}
$args['body']['locale'] = 'en_US';
}
return $args;
}
/**
* Read a string field from the request body arguments.
*
* @param array<string,mixed> $args HTTP request arguments.
* @param string $key Body field name.
* @param string $fallback_value Default value when missing.
* @return string
*/
private function body_field( $args, $key, $fallback_value ) {
if ( isset( $args['body'] ) && is_array( $args['body'] ) && isset( $args['body'][ $key ] ) && is_string( $args['body'][ $key ] ) ) {
return $args['body'][ $key ];
}
return $fallback_value;
}
/**
* Reduce translations payloads to the translation revision date.
*
* 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
*/
private function filter_translations( $json ) {
$data = json_decode( $json, true );
if ( ! is_array( $data ) ) {
return $json;
}
$filtered = array();
foreach ( $data as $slug => $locales ) {
if ( ! is_array( $locales ) ) {
continue;
}
foreach ( $locales as $locale => $fields ) {
if ( is_array( $fields ) ) {
$kept = $this->keep_fields( $fields, array( 'po-revision-date' ) );
if ( ! empty( $kept ) ) {
$filtered[ $slug ][ $locale ] = $kept;
}
}
}
}
if ( empty( $filtered ) ) {
return $json;
}
$encoded = wp_json_encode( $filtered );
if ( false === $encoded ) {
return $json;
}
return $encoded;
}
/**
* Keep only the allowed fields of a payload entry.
*
* Matching is case-insensitive; original keys are preserved.
*
* @param array<mixed,mixed> $fields Fields of the entry.
* @param array<int,string> $allowed Lowercase allowed field names.
* @return array<mixed,mixed>
*/
private function keep_fields( $fields, $allowed ) {
$kept = array();
foreach ( $fields as $key => $value ) {
if ( in_array( strtolower( (string) $key ), $allowed, true ) ) {
$kept[ $key ] = $value;
}
}
return $kept;
}
/**
* Hash Update URI values hosted outside wordpress.org.
*
* Update URIs pointing at wordpress.org are kept as-is (they are
* public slugs). Any other host is replaced with a deterministic
* SHA-256 truncation of the URI, so the plugin or theme source is
* no longer identifiable while staying consistent across requests.
*
* @param array<mixed,mixed> $fields Fields of a plugin or theme entry.
* @return array<mixed,mixed>
*/
private function hash_update_uri( $fields ) {
foreach ( $fields as $key => $value ) {
if ( 'updateuri' !== strtolower( (string) $key ) || ! is_string( $value ) || '' === $value ) {
continue;
}
$host = wp_parse_url( $value, PHP_URL_HOST );
if ( ! is_string( $host ) || false === strpos( strtolower( $host ), 'wordpress.org' ) ) {
$fields[ $key ] = 'https://' . substr( hash( 'sha256', $value ), 0, 16 );
}
}
return $fields;
}
/**
* Whether a check is configured to run in safe mode.
*
* @param string $option Option name.
* @return bool
*/
private function is_safe( $option ) {
return 'original' !== Robotstxt_Telemetry_Network::get_setting( $option, 'safe' );
}
}
}

View file

@ -17,18 +17,34 @@ if ( ! class_exists( 'Robotstxt_Telemetry' ) ) {
/**
* Initialize the plugin.
*
* @return void
*/
public static function init(): void {
public static function init() {
$instance = new self();
$instance->register_hooks();
}
/**
* Register hooks.
*
* @return void
*/
private function register_hooks(): void {
private function register_hooks() {
add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) );
add_action( 'init', array( 'Robotstxt_Telemetry_DB', 'maybe_upgrade' ) );
add_action( 'init', array( $this, 'schedule_cleanup' ) );
add_action( 'robotstxt_telemetry_cleanup', array( 'Robotstxt_Telemetry_DB', 'cleanup' ) );
add_filter( 'http_request_args', array( $this, 'filter_useragent' ), 9, 2 );
$wordpress_api = new Robotstxt_Telemetry_WordPress_Api();
$wordpress_api->register();
$plugin_guards = new Robotstxt_Telemetry_Plugin_Guards();
$plugin_guards->register();
$endpoints = new Robotstxt_Telemetry_Endpoints();
$endpoints->register();
$logger = new Robotstxt_Telemetry_Logger();
$logger->register();
@ -43,9 +59,135 @@ if ( ! class_exists( 'Robotstxt_Telemetry' ) ) {
}
/**
* Load plugin translations.
* Filter the outbound User-Agent.
*
* The default outbound User-Agent is "WordPress/<version>; <site URL>",
* and the WordPress.org update checks send an explicit one with the
* same shape. Depending on the settings, the site URL is sent as-is,
* replaced with a deterministic SHA-256 hash, or removed, and the
* WordPress version can be reduced to its major version ("7.2.n")
* or nulled ("0.0.0").
*
* Runs at priority 9 so the telemetry logger records the value that
* is actually sent on the wire.
*
* @param array<string,mixed> $args HTTP request arguments.
* @param string $url Request URL.
* @return array<string,mixed>
*/
public function load_textdomain(): void {
public function filter_useragent( $args, $url ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter -- Second argument required by the http_request_args filter signature.
$url_mode = Robotstxt_Telemetry_Network::get_useragent_url_mode();
$version_mode = Robotstxt_Telemetry_Network::get_wp_version_mode();
if ( 'url' === $url_mode && 'actual' === $version_mode ) {
return $args;
}
$site_url = get_bloginfo( 'url' );
if ( isset( $args['user-agent'] ) && is_string( $args['user-agent'] ) ) {
$args['user-agent'] = $this->mask_user_agent( $args['user-agent'], $url_mode, $version_mode, $site_url );
}
if ( isset( $args['headers'] ) && is_array( $args['headers'] ) ) {
foreach ( array( 'User-Agent', 'user-agent' ) as $header ) {
if ( isset( $args['headers'][ $header ] ) && is_string( $args['headers'][ $header ] ) ) {
$args['headers'][ $header ] = $this->mask_user_agent( $args['headers'][ $header ], $url_mode, $version_mode, $site_url );
}
}
}
return $args;
}
/**
* Apply the URL and version masking to a User-Agent string.
*
* @param string $user_agent User-Agent value.
* @param string $url_mode 'url', 'hash', or 'none'.
* @param string $version_mode 'actual', 'major', or 'nulled'.
* @param string $site_url Site URL.
* @return string
*/
private function mask_user_agent( $user_agent, $url_mode, $version_mode, $site_url ) {
// Core sends the site URL with (update checks) and without (HTTP
// API) a trailing slash; the slashed form must be replaced first
// so its slash does not leak, then the bare form.
$bare = untrailingslashit( $site_url );
$hash = substr( hash( 'sha256', $bare ), 0, 16 );
$url_forms = array( $bare . '/', $bare );
$url_forms = array_unique( $url_forms );
foreach ( $url_forms as $url_form ) {
if ( false === strpos( $user_agent, $url_form ) ) {
continue;
}
if ( 'hash' === $url_mode ) {
$user_agent = str_replace( $url_form, $hash, $user_agent );
} elseif ( 'none' === $url_mode ) {
$user_agent = str_replace( '; ' . $url_form, '', $user_agent );
$user_agent = str_replace( $url_form, '', $user_agent );
}
}
$user_agent = trim( $user_agent );
if ( 'actual' !== $version_mode && preg_match( '#^WordPress/(\d+[^\s;]*)#', $user_agent, $matches ) ) {
$masked = preg_replace(
'#^WordPress/[^\s;]+#',
'WordPress/' . Robotstxt_Telemetry_Network::mask_wp_version( $matches[1], $version_mode ),
$user_agent
);
if ( null !== $masked ) {
$user_agent = $masked;
}
}
return $user_agent;
}
/**
* Schedule the log cleanup event if it is not scheduled yet.
*
* In global mode the shared table is cleaned from the main site
* only, so subsites do not schedule the event.
*
* @return void
*/
public function schedule_cleanup() {
if ( Robotstxt_Telemetry_Network::is_global() && ! is_main_site() ) {
return;
}
if ( ! wp_next_scheduled( 'robotstxt_telemetry_cleanup' ) ) {
wp_schedule_event( time() + HOUR_IN_SECONDS, 'twicedaily', 'robotstxt_telemetry_cleanup' );
}
}
/**
* Deactivation handler: clear the scheduled cleanup event.
*
* @return void
*/
public static function deactivate() {
wp_clear_scheduled_hook( 'robotstxt_telemetry_cleanup' );
if ( is_multisite() ) {
foreach ( Robotstxt_Telemetry_Network::get_site_ids() as $site_id ) {
switch_to_blog( $site_id );
wp_clear_scheduled_hook( 'robotstxt_telemetry_cleanup' );
restore_current_blog();
}
}
}
/**
* Load plugin translations.
*
* @return void
*/
public function load_textdomain() {
load_plugin_textdomain(
'robotstxt-telemetry',
false,

Binary file not shown.

View file

@ -0,0 +1,879 @@
# Translation of Telemetry disabler (by ROBOTSTXT) in Catalan.
# This file is distributed under the GPL-3.0-or-later.
msgid ""
msgstr ""
"Project-Id-Version: Telemetry disabler (by ROBOTSTXT) 1.1.4\n"
"Report-Msgid-Bugs-To: https://www.robotstxt.software/plugins/robotstxt-telemetry/\n"
"Last-Translator: ROBOTSTXT <hola@robotstxt.software>\n"
"Language-Team: CA <hola@robotstxt.software>\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"PO-Revision-Date: 2026-08-20 14:25+0000\n"
"X-Generator: manual\n"
"X-Domain: robotstxt-telemetry\n"
#. Description of the plugin
#: robotstxt-telemetry.php
msgid "Reduces the telemetry WordPress sends out and logs every outbound HTTP request, so your site shares less and you can see everything."
msgstr "Redueix la telemetría que el WordPress envia i registra totes les peticions HTTP sortints, de manera que el lloc comparteix menys i ho podeu veure tot."
#: includes/class-robotstxt-telemetry-admin.php:45
#: includes/class-robotstxt-telemetry-admin.php:46
#: includes/class-robotstxt-telemetry-admin.php:96
#: includes/class-robotstxt-telemetry-admin.php:97
msgid "Telemetry"
msgstr "Telemetría"
#: includes/class-robotstxt-telemetry-admin.php:55
#: includes/class-robotstxt-telemetry-admin.php:56
#: includes/class-robotstxt-telemetry-admin.php:106
#: includes/class-robotstxt-telemetry-admin.php:107
#: includes/class-robotstxt-telemetry-admin.php:524
msgid "Settings"
msgstr "Ajustos"
#: includes/class-robotstxt-telemetry-admin.php:64
#: includes/class-robotstxt-telemetry-admin.php:65
#: includes/class-robotstxt-telemetry-admin.php:115
#: includes/class-robotstxt-telemetry-admin.php:116
#: includes/class-robotstxt-telemetry-admin.php:525
msgid "Plugins"
msgstr "Complements"
#: includes/class-robotstxt-telemetry-admin.php:73
#: includes/class-robotstxt-telemetry-admin.php:74
#: includes/class-robotstxt-telemetry-admin.php:125
#: includes/class-robotstxt-telemetry-admin.php:126
#: includes/class-robotstxt-telemetry-admin.php:526
msgid "Logs"
msgstr "Registres"
#: includes/class-robotstxt-telemetry-admin.php:430
msgid "Settings saved."
msgstr "Ajustos desats."
#: includes/class-robotstxt-telemetry-admin.php:434
msgid "Configuration mode saved."
msgstr "Mode de configuració desat."
#: includes/class-robotstxt-telemetry-admin.php:453
msgid "Telemetry Network Settings"
msgstr "Ajustos de telemetría de la xarxa"
#: includes/class-robotstxt-telemetry-admin.php:464
#: includes/class-robotstxt-telemetry-admin.php:467
msgid "Configuration mode"
msgstr "Mode de configuració"
#: includes/class-robotstxt-telemetry-admin.php:469
msgid "Per-site"
msgstr "Per lloc"
#: includes/class-robotstxt-telemetry-admin.php:471
msgid "Global"
msgstr "Global"
#: includes/class-robotstxt-telemetry-admin.php:473
msgid "Per-site: every site keeps its own settings and its own log table, managed by each site administrator. Global: one shared configuration and one central log on the main site collect the outbound requests of the whole network; the Telemetry screens are then managed from here only."
msgstr "Per lloc: cada lloc conserva els seus propis ajustos i la seva pròpia taula de registres, gestionats per cada administrador del lloc. Global: una configuració compartida i un registre central al lloc principal recullen les peticions sortints de tota la xarxa; les pantalles de Telemetría es gestionen llavors únicament des d'aquí."
#: includes/class-robotstxt-telemetry-admin.php:479
msgid "Save configuration mode"
msgstr "Desa el mode de configuració"
#: includes/class-robotstxt-telemetry-admin.php:484
msgid "Switch to Global mode to manage the settings and the logs for the whole network from this screen."
msgstr "Canvieu al mode Global per a gestionar els ajustos i els registres de tota la xarxa des d'aquesta pantalla."
#: includes/class-robotstxt-telemetry-admin.php:527
msgid "General"
msgstr "General"
#: includes/class-robotstxt-telemetry-admin.php:530
msgid "Settings sections"
msgstr "Seccions d'ajustos"
#: includes/class-robotstxt-telemetry-admin.php:566
msgid "Telemetry Settings"
msgstr "Ajustos de telemetría"
#: includes/class-robotstxt-telemetry-admin.php:605
#: includes/class-robotstxt-telemetry-admin.php:608
msgid "Outbound requests"
msgstr "Peticions sortints"
#: includes/class-robotstxt-telemetry-admin.php:612
msgid "Send your URL"
msgstr "Envia la teva URL"
#: includes/class-robotstxt-telemetry-admin.php:613
msgid "Send a hash"
msgstr "Envia un hash"
#: includes/class-robotstxt-telemetry-admin.php:614
msgid "Do not send anything"
msgstr "No enviïs res"
#: includes/class-robotstxt-telemetry-admin.php:622
msgid "Outbound requests normally identify this site in the User-Agent with its URL (for example \"WordPress/6.9; https://example.com/\"). \"Send a hash\" (default) replaces it with a fixed hash so the site is no longer identifiable; \"Do not send anything\" removes it completely."
msgstr "Les peticions sortints normalment identifiquen aquest lloc a la User-Agent amb la seva URL (per exemple «WordPress/6.9; https://example.com/»). «Envia un hash» (per defecte) la substitueix per un hash fix perquè el lloc deixi de ser identificable; «No enviïs res» la elimina completament."
#: includes/class-robotstxt-telemetry-admin.php:630
#: includes/class-robotstxt-telemetry-admin.php:633
msgid "WordPress version"
msgstr "Versió del WordPress"
#: includes/class-robotstxt-telemetry-admin.php:637
#: includes/class-robotstxt-telemetry-admin.php:818
msgid "Actual version"
msgstr "Versió real"
#: includes/class-robotstxt-telemetry-admin.php:638
msgid "Major version"
msgstr "Versió principal"
#: includes/class-robotstxt-telemetry-admin.php:639
msgid "Nulled version"
msgstr "Versió nul·la"
#: includes/class-robotstxt-telemetry-admin.php:647
msgid "The version reported in the User-Agent and in the WordPress.org version fields: the actual version (default), the major version with the rest masked (for example \"7.2.n\"), or a nulled version (\"0.0.0\"). The checksum and translation requests always use the real version so updates keep working."
msgstr "La versió comunicada a la User-Agent i als camps de versió de WordPress.org: la versió real (per defecte), la versió principal amb la resta emmascarada (per exemple «7.2.n»), o una versió nul·la («0.0.0»). Les peticions de checksums i traduccions sempre usen la versió real perquè les actualitzacions continuïn funcionant."
#: includes/class-robotstxt-telemetry-admin.php:653
msgid "Installation language"
msgstr "Llengua de la instal·lació"
#: includes/class-robotstxt-telemetry-admin.php:657
msgid "Send en_US as the language of outbound requests"
msgstr "Envia en_US com a llengua de les peticions sortints"
#: includes/class-robotstxt-telemetry-admin.php:659
msgid "When enabled, requests to WordPress.org report English (United States) instead of the installation language. The translation endpoints keep using the real language so installed language packs keep receiving updates."
msgstr "Quan està activat, les peticions a WordPress.org informen d'anglès (Estats Units) en comptes de la llengua de la instal·lació. Els punts finals de traducció continuen usant la llengua real perquè els paquets d'idioma instal·lats continuïn rebent actualitzacions."
#: includes/class-robotstxt-telemetry-admin.php:665
msgid "Replace the WordPress News feed"
msgstr "Substitueix el feed de notícies del WordPress"
#: includes/class-robotstxt-telemetry-admin.php:666
msgid "Use WordPress Planet by Fair (planet.fair.pm) instead of wordpress.org/news for the Events and News dashboard widget"
msgstr "Usa WordPress Planet by Fair (planet.fair.pm) en comptes de wordpress.org/news per al giny del tauler Esdeveniments i notícies"
#: includes/class-robotstxt-telemetry-admin.php:669
msgid "Replace the WordPress Events service"
msgstr "Substitueix el servei d'esdeveniments del WordPress"
#: includes/class-robotstxt-telemetry-admin.php:670
msgid "Use WordPress Events by The WP World (api.fair.pm) instead of api.wordpress.org/events, sending the same request data"
msgstr "Usa WordPress Events by The WP World (api.fair.pm) en comptes d'api.wordpress.org/events, enviant les mateixes dades de la petició"
#: includes/class-robotstxt-telemetry-admin.php:673
msgid "Disable the WordPress browser check"
msgstr "Desactiva la comprovació del navegador del WordPress"
#: includes/class-robotstxt-telemetry-admin.php:674
msgid "Do not send the browser version to api.wordpress.org/core/browse-happy; the browser is always reported as compatible"
msgstr "No envia la versió del navegador a api.wordpress.org/core/browse-happy; el navegador sempre s'informa com a compatible"
#: includes/class-robotstxt-telemetry-admin.php:692
msgid "WordPress Core version check"
msgstr "Comprovació de la versió del nucli del WordPress"
#: includes/class-robotstxt-telemetry-admin.php:693
msgid "Safe sends only the WordPress version, PHP version, locale, MySQL version, and update channel. Original also sends site counts, database history, PHP extensions, and platform details."
msgstr "Segur envia únicament la versió del WordPress, la versió del PHP, la llengua, la versió del MySQL i el canal d'actualitzacions. Original envia també els recomptes del lloc, l'historial de la base de dades, les extensions del PHP i els detalls de la plataforma."
#: includes/class-robotstxt-telemetry-admin.php:696
msgid "WordPress Themes version check"
msgstr "Comprovació de la versió dels temes del WordPress"
#: includes/class-robotstxt-telemetry-admin.php:697
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 "Segur envia únicament el nom del tema, la versió, l'URI d'actualització, la plantilla i el full d'estils, a més de la data de revisió de la traducció i la llengua del lloc. Original envia també les dades de l'autor i altres metadades del tema."
#: includes/class-robotstxt-telemetry-admin.php:700
msgid "WordPress Plugins version check"
msgstr "Comprovació de la versió dels complements del WordPress"
#: includes/class-robotstxt-telemetry-admin.php:701
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 "Segur envia únicament la versió del complement, l'URI d'actualització i els requisits, a més de la data de revisió de la traducció, la llengua i el marcador «all». Original envia també noms, descripcions, autors i altres metadades dels complements."
#: includes/class-robotstxt-telemetry-admin.php:713
msgid "Original"
msgstr "Original"
#: includes/class-robotstxt-telemetry-admin.php:715
msgid "Safe"
msgstr "Segur"
#: includes/class-robotstxt-telemetry-admin.php:732
#: includes/class-robotstxt-telemetry-admin.php:734
msgid "Log retention"
msgstr "Retenció dels registres"
#: includes/class-robotstxt-telemetry-admin.php:738
msgid "12 hours"
msgstr "12 hores"
#: includes/class-robotstxt-telemetry-admin.php:739
msgid "1 day"
msgstr "1 dia"
#: includes/class-robotstxt-telemetry-admin.php:740
msgid "3 days"
msgstr "3 dies"
#: includes/class-robotstxt-telemetry-admin.php:753
msgid "Logs older than the selected period are deleted (12 hours by default). A maximum of 1000 entries is always kept; the cleanup runs when browsing the logs and twice a day automatically."
msgstr "Els registres anteriors al període seleccionat se suprimeixen (12 hores per defecte). Sempre es conserva un màxim de 1000 entrades; la neteja s'executa en consultar els registres i automàticament dues vegades al dia."
#: includes/class-robotstxt-telemetry-admin.php:760
msgid "Uninstall behavior"
msgstr "Comportament en desinstal·lar"
#: includes/class-robotstxt-telemetry-admin.php:764
msgid "Delete all telemetry logs and plugin options on uninstall"
msgstr "Suprimeix tots els registres de telemetría i els ajustos del complement en desinstal·lar"
#: includes/class-robotstxt-telemetry-admin.php:766
msgid "By default, all telemetry logs are preserved when the plugin is uninstalled."
msgstr "Per defecte, tots els registres de telemetría es conserven en desinstal·lar el complement."
#: includes/class-robotstxt-telemetry-admin.php:805
msgid "Telemetry - Plugins"
msgstr "Telemetría - Complements"
#: includes/class-robotstxt-telemetry-admin.php:807
msgid "Plugin modes saved."
msgstr "Modes dels complements desats."
#: includes/class-robotstxt-telemetry-admin.php:809
msgid "Every installed plugin with a known telemetry behavior is listed below. In Safe mode the known telemetry endpoints are blocked or reduced to the minimum data each service needs to work; in Original mode the plugin behaves exactly as it would without Telemetry disabler. The tested version is the plugin version the Safe profile was verified against."
msgstr "A continuació es llista cada complement instal·lat amb un comportament de telemetría conegut. En mode Segur els punts finals de telemetría coneguts es bloquen o es redueixen a les dades mínimes que cada servei necessita per a funcionar; en mode Original el complement es comporta exactament com ho faria sense Telemetry disabler. La versió provada és la versió del complement amb què es va verificar el perfil Segur."
#: includes/class-robotstxt-telemetry-admin.php:816
msgid "Safe Mode"
msgstr "Mode segur"
#: includes/class-robotstxt-telemetry-admin.php:817
#: includes/class-robotstxt-telemetry-admin.php:968
msgid "Plugin"
msgstr "Complement"
#: includes/class-robotstxt-telemetry-admin.php:819
msgid "Tested version"
msgstr "Versió provada"
#: includes/class-robotstxt-telemetry-admin.php:820
msgid "Description"
msgstr "Descripció"
#. translators: %s: Plugin name.
#: includes/class-robotstxt-telemetry-admin.php:835
#: includes/class-robotstxt-telemetry-admin.php:836
#, php-format
msgid "Safe Mode for %s"
msgstr "Mode segur per a %s"
#: includes/class-robotstxt-telemetry-admin.php:846
msgid "Save plugin modes"
msgstr "Desa els modes dels complements"
#: includes/class-robotstxt-telemetry-admin.php:956
msgid "The plugins checked below are never sent to WordPress.org: they are excluded from the plugin update check (including their translations and the active list). That also means they will not receive update notifications from WordPress.org."
msgstr "Els complements marcats a continuació mai no s'envien a WordPress.org: queden exclosos de la comprovació d'actualitzacions de complements (incloses les seves traduccions i la llista d'actius). Això també significa que no rebran notificacions d'actualització de WordPress.org."
#: includes/class-robotstxt-telemetry-admin.php:957
msgid "Recommendation: keep external or private plugins (those not hosted on WordPress.org) checked, since they do not receive WordPress.org updates anyway and nothing is gained by reporting them."
msgstr "Recomanació: deixeu marcats els complements externs o privats (els no allotjats a WordPress.org), atès que no reben actualitzacions de WordPress.org de totes maneres i no s'hi guanya res informant-ne."
#: includes/class-robotstxt-telemetry-admin.php:966
msgid "Hide from WordPress.org"
msgstr "Amaga a WordPress.org"
#: includes/class-robotstxt-telemetry-admin.php:967
msgid "Status"
msgstr "Estat"
#: includes/class-robotstxt-telemetry-admin.php:969
msgid "Version"
msgstr "Versió"
#: includes/class-robotstxt-telemetry-admin.php:990
msgid "Always hidden"
msgstr "Sempre ocult"
#: includes/class-robotstxt-telemetry-admin.php:990
msgid "Active"
msgstr "Actiu"
#: includes/class-robotstxt-telemetry-admin.php:990
msgid "Inactive"
msgstr "Inactiu"
#: includes/class-robotstxt-telemetry-admin.php:1023
msgid "Telemetry Logs"
msgstr "Registres de telemetría"
#: includes/class-robotstxt-telemetry-admin.php:1043
msgid "All log entries deleted."
msgstr "S'han suprimit totes les entrades del registre."
#: includes/class-robotstxt-telemetry-admin.php:1045
msgid "Log entry deleted."
msgstr "S'ha suprimit l'entrada del registre."
#: includes/class-robotstxt-telemetry-admin.php:1059
msgid "Delete all logs"
msgstr "Suprimeix tots els registres"
#: includes/class-robotstxt-telemetry-admin.php:1079
msgid "You are about to permanently delete all telemetry log entries. This action cannot be undone."
msgstr "Esteu a punt de suprimir permanentment totes les entrades del registre de telemetría. Aquesta acció no es pot desfer."
#: includes/class-robotstxt-telemetry-admin.php:1087
msgid "Yes, delete all logs"
msgstr "Sí, suprimeix tots els registres"
#: includes/class-robotstxt-telemetry-admin.php:1088
msgid "Cancel"
msgstr "Cancel·la"
#: includes/class-robotstxt-telemetry-admin.php:1102
msgid "Log entry not found."
msgstr "No s'ha trobat l'entrada del registre."
#: includes/class-robotstxt-telemetry-admin.php:1106
msgid "Back to logs"
msgstr "Torna als registres"
#: includes/class-robotstxt-telemetry-admin.php:1110
#: includes/class-robotstxt-telemetry-logs-table.php:49
msgid "Date"
msgstr "Data"
#: includes/class-robotstxt-telemetry-admin.php:1111
#: includes/class-robotstxt-telemetry-logs-table.php:50
msgid "Method"
msgstr "Mètode"
#: includes/class-robotstxt-telemetry-admin.php:1112
msgid "URL"
msgstr "URL"
#: includes/class-robotstxt-telemetry-admin.php:1113
#: includes/class-robotstxt-telemetry-logs-table.php:51
#: includes/class-robotstxt-telemetry-logs-table.php:245
msgid "Host"
msgstr "Amfitrió"
#: includes/class-robotstxt-telemetry-admin.php:1114
#: includes/class-robotstxt-telemetry-logs-table.php:52
msgid "Path"
msgstr "Camí"
#: includes/class-robotstxt-telemetry-admin.php:1115
msgid "Body Params"
msgstr "Paràmetres del cos"
#: includes/class-robotstxt-telemetry-admin.php:1116
msgid "Headers"
msgstr "Capçaleres"
#: includes/class-robotstxt-telemetry-admin.php:1117
msgid "User Agent"
msgstr "User Agent"
#: includes/class-robotstxt-telemetry-admin.php:1118
msgid "Raw Body"
msgstr "Cos en brut"
#: includes/class-robotstxt-telemetry-admin.php:1119
msgid "Caller"
msgstr "Origen de la crida"
#: includes/class-robotstxt-telemetry-admin.php:1140
msgid "Telemetry Analysis"
msgstr "Anàlisi de telemetría"
#: includes/class-robotstxt-telemetry-analysis-api-wordpress-org.php:74
msgid "Environment"
msgstr "Entorn"
#: includes/class-robotstxt-telemetry-analysis-api-wordpress-org.php:78
msgid "Extensions"
msgstr "Extensions"
#: includes/class-robotstxt-telemetry-analysis-api-wordpress-org.php:82
msgid "Platform Flags"
msgstr "Indicadors de la plataforma"
#: includes/class-robotstxt-telemetry-analysis-api-wordpress-org.php:86
msgid "Image Support"
msgstr "Compatibilitat amb imatges"
#: includes/class-robotstxt-telemetry-analysis-api-wordpress-org.php:90
msgid "Other URL Parameters"
msgstr "Altres paràmetres de la URL"
#: includes/class-robotstxt-telemetry-analysis-api-wordpress-org.php:117
#: includes/class-robotstxt-telemetry-analysis-api-wordpress-org.php:119
msgid "Translations"
msgstr "Traduccions"
#: includes/class-robotstxt-telemetry-analysis-api-wordpress-org.php:124
msgid "Other Body Parameters"
msgstr "Altres paràmetres del cos"
#: includes/class-robotstxt-telemetry-analysis.php:45
msgid "URL Parameters"
msgstr "Paràmetres de la URL"
#: includes/class-robotstxt-telemetry-analysis.php:50
msgid "Body Parameters"
msgstr "Paràmetres del cos"
#: includes/class-robotstxt-telemetry-logs-table.php:173
msgid "View"
msgstr "Visualitza"
#: includes/class-robotstxt-telemetry-logs-table.php:174
msgid "Delete"
msgstr "Suprimeix"
#: includes/class-robotstxt-telemetry-logs-table.php:225
msgid "Filter by method"
msgstr "Filtra per mètode"
#: includes/class-robotstxt-telemetry-logs-table.php:227
msgid "All methods"
msgstr "Tots els mètodes"
#: includes/class-robotstxt-telemetry-logs-table.php:241
msgid "Filter by host"
msgstr "Filtra per amfitrió"
#: includes/class-robotstxt-telemetry-logs-table.php:248
msgid "From date"
msgstr "Des de la data"
#: includes/class-robotstxt-telemetry-logs-table.php:254
msgid "To date"
msgstr "Fins a la data"
#: includes/class-robotstxt-telemetry-logs-table.php:260
msgid "Filter"
msgstr "Filtra"
#. translators: 1: Manager plugin URL, 2: link text.
#: includes/class-robotstxt-telemetry-manager-notice.php:139
#, php-format
msgid "To receive updates for Telemetry disabler (by ROBOTSTXT), the <a href=\"%1$s\">%2$s</a> plugin must be installed and active."
msgstr "Per a rebre actualitzacions del Telemetry disabler (by ROBOTSTXT), cal que el complement <a href=\"%1$s\">%2$s</a> estigui instal·lat i actiu."
#: includes/class-robotstxt-telemetry-manager-notice.php:141
msgid "Manager (by ROBOTSTXT)"
msgstr "Manager (by ROBOTSTXT)"
#: includes/class-robotstxt-telemetry-manager-notice.php:178
msgid "You do not have sufficient permissions to perform this action."
msgstr "No teniu permisos suficients per a fer aquesta acció."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:61
msgid "Blocks the analytics.adinserter.pro telemetry (site URL, site name, WordPress and PHP versions, admin email, plugin list and options). Update checks keep working."
msgstr "Bloca la telemetría d'analytics.adinserter.pro (URL del lloc, nom del lloc, versions del WordPress i del PHP, correu de l'administrador, llista de complements i ajustos). Les comprovacions d'actualitzacions continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:70
msgid "Removes the WordPress version and site URL from the API User-Agent. The connect flow keeps sending the site URL because it is the account identifier."
msgstr "Elimina la versió del WordPress i la URL del lloc de la User-Agent de l'API. El flux de connexió continua enviant la URL del lloc perquè és l'identificador del compte."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:80
msgid "Removes the site URL and the admin email from the extension update-check query. Extension updates keep working (they only need the purchased extension slug and version)."
msgstr "Elimina la URL del lloc i el correu de l'administrador de la consulta de comprovació d'actualitzacions d'extensions. Les actualitzacions d'extensions continuen funcionant (només necessiten l'slug i la versió de l'extensió comprada)."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:93
msgid "Blocks the comment-language check (which sends the comment text) and the IP country lookup. All the local spam checks keep working."
msgstr "Bloca la comprovació de la llengua dels comentaris (que envia el text del comentari) i la consulta del país per IP. Totes les comprovacions antispam locals continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:108
msgid "Removes the site URL from the starter-template requests. License validation keeps sending the site URL because it is the account identifier."
msgstr "Elimina la URL del lloc de les peticions de plantilles inicials. La validació de la llicència continua enviant la URL del lloc perquè és l'identificador del compte."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:117
msgid "Blocks the usage ping. The critical CSS service keeps receiving the page URL because generating the CSS for a page requires that page URL."
msgstr "Bloca el ping d'ús. El servei de CSS crític continua rebent la URL de la pàgina perquè generar el CSS d'una pàgina requereix aquesta URL."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:121
msgid "Blocks the Mixpanel telemetry events (which include the site host and versions). Backup destinations are admin-configured and untouched."
msgstr "Bloca els esdeveniments de telemetría del Mixpanel (que inclouen l'amfitrió del lloc i les versions). Les destinacions de les còpies de seguretat es configuren a l'administració i no es toquen."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:130
msgid "Blocks the StellarWP telemetry reports. The brute-force network and licensing keep working."
msgstr "Bloca els informes de telemetría de StellarWP. La xarxa de força bruta i les llicències continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:140
msgid "Removes the Referer header (your site URL) from the Sucuri site-check requests. The scan itself keeps working."
msgstr "Elimina la capçalera Referer (la URL del vostre lloc) de les peticions de comprovació del lloc de Sucuri. L'anàlisi en si continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:144
msgid "Removes the WordPress version, home URL, plugin and theme lists from the WPMU DEV Hub payloads, and the site URL from the User-Agent. The Hub connection keeps the domain as the account identifier."
msgstr "Elimina la versió del WordPress, la URL d'inici i les llistes de complements i temes de les càrregues del WPMU DEV Hub, i la URL del lloc de la User-Agent. La connexió amb el Hub conserva el domini com a identificador del compte."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:153
msgid "Removes the WordPress version and site URL from the API User-Agent. Link analysis keeps working."
msgstr "Elimina la versió del WordPress i la URL del lloc de la User-Agent de l'API. L'anàlisi d'enllaços continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:163
msgid "Blocks the aggregated statistics telemetry. License checks keep sending the site URL as the account identifier."
msgstr "Bloca la telemetría d'estadístiques agregades. Les comprovacions de llicència continuen enviant la URL del lloc com a identificador del compte."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:172
msgid "Removes the WordPress version, PHP version and site URL from the API User-Agent. All button features keep working."
msgstr "Elimina la versió del WordPress, la versió del PHP i la URL del lloc de la User-Agent de l'API. Totes les funcions dels botons continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:182
msgid "Blocks the NPS survey requests that automatically attach the admin name and email. Template downloads keep working."
msgstr "Bloca les peticions de l'enquesta NPS que adjunten automàticament el nom i el correu de l'administrador. Les baixades de plantilles continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:191
msgid "Blocks the feedback and support pings that send the site URL. The chat channels keep working."
msgstr "Bloca els pings de comentaris i suport que envien la URL del lloc. Els canals de xat continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:201
msgid "Blocks the deactivation feedback (WordPress version, PHP version, site URL, language, theme, plugin list, server software). Chat widgets keep working."
msgstr "Bloca l'enquesta de desactivació (versió del WordPress, versió del PHP, URL del lloc, llengua, tema, llista de complements, programari del servidor). Els ginys de xat continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:211
msgid "Removes the site host from the cloud search queries. Cloud search keeps working with the account token."
msgstr "Elimina l'amfitrió del lloc de les consultes de cerca al núvol. La cerca al núvol continua funcionant amb el testimoni del compte."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:221
msgid "Removes the WordPress version from the license requests. The license key, site URL (account identifier) and installed version (needed for updates) are kept."
msgstr "Elimina la versió del WordPress de les peticions de llicència. La clau de llicència, la URL del lloc (identificador del compte) i la versió instal·lada (necessària per a les actualitzacions) es conserven."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:225
msgid "Blocks the Freemius analytics events (plugin and theme lists, versions, site URL, language). License activation keeps working."
msgstr "Bloca els esdeveniments d'analítica del Freemius (llistes de complements i temes, versions, URL del lloc, llengua). L'activació de la llicència continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:235
msgid "Blocks the uninstall feedback (MySQL, WordPress and WooCommerce versions, locale, multisite flag). The cookie scanner keeps sending the scanned URLs because that is its function."
msgstr "Bloca l'enquesta de desinstal·lació (versions del MySQL, del WordPress i del WooCommerce, llengua, indicador de multilloc). L'escàner de galetes continua enviant les URL escanejades perquè aquesta és la seva funció."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:245
msgid "Blocks the deactivation feedback that sends the site URL. The notice and the account service keep working."
msgstr "Bloca l'enquesta de desactivació que envia la URL del lloc. L'avís i el servei de comptes continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:254
msgid "Blocks the usage tracker (WordPress version, PHP version, server IP, MySQL version, locale, plugin list). Post duplication is fully local."
msgstr "Bloca el rastrejador d'ús (versió del WordPress, versió del PHP, IP del servidor, versió del MySQL, llengua, llista de complements). La duplicació d'entrades és totalment local."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:264
msgid "Removes the site URL and language from the newsletter subscribe. The admin-entered email is kept (it is an explicit subscription)."
msgstr "Elimina la URL del lloc i la llengua de la subscripció al butlletí. El correu introduït per l'administrador es conserva (és una subscripció explícita)."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:268
msgid "Blocks the BSF analytics report (site URL, WordPress/PHP/MySQL versions, user count, language, timezone, plugin list, server software). Font uploads are unaffected."
msgstr "Bloca l'informe d'analítica del BSF (URL del lloc, versions del WordPress/PHP/MySQL, nombre d'usuaris, llengua, zona horària, llista de complements, programari del servidor). La pujada de tipus de lletra no es veu afectada."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:281
msgid "Blocks the usage tracker and its country lookup (site URL, plugin slug, server IP). Comment disabling is fully local."
msgstr "Bloca el rastrejador d'ús i la seva consulta del país (URL del lloc, slug del complement, IP del servidor). La desactivació de comentaris és totalment local."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:290
msgid "Removes the site URL from the geo-lookup User-Agent. Mail delivery keeps working with your mailer credentials only."
msgstr "Elimina la URL del lloc de la User-Agent de la geolocalització. El lliurament de correu continua funcionant únicament amb les vostres credencials de correu."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:301
msgid "Removes the language and API version from the feedback surveys. The template library and the connect flow (site URL as account identifier) are untouched."
msgstr "Elimina la llengua i la versió de l'API de les enquestes de comentaris. La biblioteca de plantilles i el flux de connexió (la URL del lloc com a identificador del compte) no es toquen."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:312
msgid "Removes the WordPress version, PHP version and site URL from the unsubscribe feedback. Widgets and modules are unaffected."
msgstr "Elimina la versió del WordPress, la versió del PHP i la URL del lloc de l'enquesta de baixa. Els ginys i els mòduls no es veuen afectats."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:322
msgid "Removes the site URL and the WordPress/PHP version block from the ShortPixel key check. The API key alone is enough to validate the account."
msgstr "Elimina la URL del lloc i el bloc de versions del WordPress/PHP de la comprovació de la clau del ShortPixel. La clau de l'API tota sola basta per a validar el compte."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:332
msgid "Blocks the usage tracker (site URL, site name, WordPress version, language, PHP version, admin email). Elements and templates keep working."
msgstr "Bloca el rastrejador d'ús (URL del lloc, nom del lloc, versió del WordPress, llengua, versió del PHP, correu de l'administrador). Els elements i les plantilles continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:341
msgid "Blocks the weekly check-in (plugin list, locale, WordPress version, OS, limits, image counts). Local and cloud optimization keep working."
msgstr "Bloca la comprovació setmanal (llista de complements, llengua, versió del WordPress, sistema operatiu, límits, recomptes d'imatges). L'optimització local i al núvol continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:356
msgid "Removes the WordPress version, language, site title, site profile and Referer header from the AI requests. The AI assistance keeps working with the prompt content only."
msgstr "Elimina la versió del WordPress, la llengua, el títol del lloc, el perfil del lloc i la capçalera Referer de les peticions d'IA. L'assistència d'IA continua funcionant únicament amb el contingut de la indicació."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:366
msgid "Blocks the tracker (WordPress version, PHP version, MySQL version, server software, plugin list, admin email, IP). Form integrations keep working."
msgstr "Bloca el rastrejador (versió del WordPress, versió del PHP, versió del MySQL, programari del servidor, llista de complements, correu de l'administrador, IP). Les integracions de formularis continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:376
msgid "Blocks the opt-in ping and the failed-mail notifications (which include email metadata). Mail delivery keeps working with your mailer credentials only."
msgstr "Bloca el ping d'acceptació i les notificacions de correu fallit (que inclouen metadades del correu). El lliurament de correu continua funcionant únicament amb les vostres credencials de correu."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:385
msgid "Blocks the usage snapshot (UUID, WordPress/PHP/MySQL versions, OS, locale, plugin list, form counts) and the onboarding email collection. Forms keep working."
msgstr "Bloca la instantània d'ús (UUID, versions del WordPress/PHP/MySQL, sistema operatiu, llengua, llista de complements, recomptes de formularis) i la recollida de correu del procés de configuració inicial. Els formularis continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:389
msgid "Removes the WordPress version, home URL, plugin and theme lists from the WPMU DEV Hub payloads, and the site URL from the User-Agent. The domain is kept as the account identifier."
msgstr "Elimina la versió del WordPress, la URL d'inici i les llistes de complements i temes de les càrregues del WPMU DEV Hub, i la URL del lloc de la User-Agent. El domini es conserva com a identificador del compte."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:398
#: includes/class-robotstxt-telemetry-plugin-profiles.php:407
msgid "Blocks the check-in (plugin list, locale, home URL). Your Google Analytics measurement keeps working."
msgstr "Bloca la comprovació periòdica (llista de complements, llengua, URL d'inici). La vostra mesuració de Google Analytics continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:417
msgid "Removes the WordPress version, PHP version and user count from the Site Kit feature reports. Search Console, Analytics and AdSense integrations keep working."
msgstr "Elimina la versió del WordPress, la versió del PHP i el nombre d'usuaris dels informes de funcions del Site Kit. Les integracions amb Search Console, Analytics i AdSense continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:430
msgid "Blocks the Google Analytics usage ping and the beta-consent ping (WordPress version, PHP version, post count, email, domain, language). Search-engine pings keep working."
msgstr "Bloca el ping d'ús de Google Analytics i el ping de consentiment per a betes (versió del WordPress, versió del PHP, nombre d'entrades, correu, domini, llengua). Els pings als motors de cerca continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:440
msgid "Blocks the Appsero insights (site URL, PHP version, MySQL, server software, WordPress version). License and update checks keep working."
msgstr "Bloca la informació de l'Appsero (URL del lloc, versió del PHP, MySQL, programari del servidor, versió del WordPress). Les comprovacions de llicència i d'actualitzacions continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:444
msgid "Blocks the BSF analytics report (site URL, PHP/WordPress versions, network URL, plugin list). Header and footer builder keep working."
msgstr "Bloca l'informe d'analítica del BSF (URL del lloc, versions del PHP/WordPress, URL de la xarxa, llista de complements). El maquetador de capçalera i peu continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:454
msgid "Blocks the event reporting that sends your domain. Hosting management actions keep working with your token."
msgstr "Bloca els informes d'esdeveniments que envien el vostre domini. Les accions de gestió de l'allotjament continuen funcionant amb el vostre testimoni."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:458
msgid "Blocks the Mixpanel telemetry events (which include the WordPress version). Image optimization keeps working with your API key."
msgstr "Bloca els esdeveniments de telemetría del Mixpanel (que inclouen la versió del WordPress). L'optimització d'imatges continua funcionant amb la vostra clau de l'API."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:469
msgid "Removes the language from the notifications requests. Image optimization and connect keep working."
msgstr "Elimina la llengua de les peticions de notificacions. L'optimització d'imatges i la connexió continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:484
msgid "Blocks the usage check-in (environment payload with a site-URL User-Agent). Feeds keep working with your access tokens."
msgstr "Bloca la comprovació periòdica d'ús (càrrega d'entorn amb una User-Agent amb la URL del lloc). Els feeds continuen funcionant amb els vostres testimonis d'accés."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:498
msgid "Blocks the Freemius analytics events and removes the domain from the newsletter subscribe. Templates and elements keep working."
msgstr "Bloca els esdeveniments d'analítica del Freemius i elimina el domini de la subscripció al butlletí. Les plantilles i els elements continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:507
msgid "Blocks the StellarWP telemetry reports. Blocks, AI features and the template library keep working."
msgstr "Bloca els informes de telemetría de StellarWP. Els blocs, les funcions d'IA i la biblioteca de plantilles continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:516
msgid "Blocks the support ping and wizard reporting (store name, domain, list data). Order and subscriber synchronization keep working."
msgstr "Bloca el ping de suport i els informes de l'assistent (nom de la botiga, domini, dades de llistes). La sincronització de comandes i subscriptors continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:526
msgid "Blocks the Tracks analytics worker. Newsletter sending and subscribers keep working."
msgstr "Bloca el procés d'analítica Tracks. L'enviament de butlletins i els subscriptors continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:536
msgid "Removes the WordPress version, PHP version and language from the updater requests. The license key and site URL (account identifier) are kept."
msgstr "Elimina la versió del WordPress, la versió del PHP i la llengua de les peticions de l'actualitzador. La clau de llicència i la URL del lloc (identificador del compte) es conserven."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:546
msgid "Blocks the onboarding data sender (plugin and theme lists). Form integrations keep working."
msgstr "Bloca l'enviament de dades del procés de configuració inicial (llistes de complements i temes). Les integracions de formularis continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:555
msgid "Blocks the usage tracking (PHP version, WordPress version, server software, home URL, theme, admin email, settings). Galleries keep working."
msgstr "Bloca el seguiment d'ús (versió del PHP, versió del WordPress, programari del servidor, URL d'inici, tema, correu de l'administrador, ajustos). Les galeries continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:565
msgid "Removes the site data block (site URL and server IP) from the dispatcher requests. Forms and add-on services keep working."
msgstr "Elimina el bloc de dades del lloc (URL del lloc i IP del servidor) de les peticions del distribuïdor. Els formularis i els serveis d'extensions continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:569
msgid "Blocks the Freemius analytics events (plugin and theme lists, versions, site URL, language). Demos and license activation keep working."
msgstr "Bloca els esdeveniments d'analítica del Freemius (llistes de complements i temes, versions, URL del lloc, llengua). Les demos i l'activació de la llicència continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:573
msgid "Blocks the Themeisle tracker and SDK logger (theme, plugin list, WordPress version). Blocks keep working."
msgstr "Bloca el rastrejador del Themeisle i el logger del SDK (tema, llista de complements, versió del WordPress). Els blocs continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:577
msgid "Blocks the Freemius analytics events (plugin and theme lists, versions, site URL, language). Password protection is fully local."
msgstr "Bloca els esdeveniments d'analítica del Freemius (llistes de complements i temes, versions, URL del lloc, llengua). La protecció amb contrasenya és totalment local."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:586
msgid "Blocks the weekly usage report (home URL, PHP/WordPress/MySQL versions, server software, multisite, plugin list, theme, locale, license, settings). PDF embedding keeps working."
msgstr "Bloca l'informe setmanal d'ús (URL d'inici, versions del PHP/WordPress/MySQL, programari del servidor, multilloc, llista de complements, tema, llengua, llicència, ajustos). La incrustació de PDF continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:597
msgid "Removes the language from the notifications requests. All accessibility widgets keep working."
msgstr "Elimina la llengua de les peticions de notificacions. Tots els ginys d'accessibilitat continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:612
msgid "Removes the PHP version and language from the Pro updater requests. The WordPress version, license and site URL (account identifier) are kept so updates keep working."
msgstr "Elimina la versió del PHP i la llengua de les peticions de l'actualitzador Pro. La versió del WordPress, la llicència i la URL del lloc (identificador del compte) es conserven perquè les actualitzacions continuïn funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:631
msgid "Blocks the telemetry check-in and the Google Analytics usage events, and removes the PHP version from the extension updater requests. Popups keep working."
msgstr "Bloca la comprovació periòdica de telemetría i els esdeveniments d'ús de Google Analytics, i elimina la versió del PHP de les peticions de l'actualitzador d'extensions. Les finestres emergents continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:644
msgid "Blocks the Freemius analytics events and removes the site URL from the notification requests. Mail delivery keeps working."
msgstr "Bloca els esdeveniments d'analítica del Freemius i elimina la URL del lloc de les peticions de notificacions. El lliurament de correu continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:658
msgid "Blocks the feedback and install pings (locale, theme and plugin lists, site domain, memory limit, execution time, used widgets). All addons keep working."
msgstr "Bloca els pings de comentaris i d'instal·lació (llengua, llistes de temes i complements, domini del lloc, límit de memòria, temps d'execució, ginys usats). Totes les extensions continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:668
msgid "Blocks the mailing-list subscribe (email, license, site URL). The vulnerability scan keeps sending your installed versions because checking them is its function."
msgstr "Bloca la subscripció a la llista de correu (correu, llicència, URL del lloc). L'anàlisi de vulnerabilitats continua enviant les vostres versions instal·lades perquè comprovar-les és la seva funció."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:677
msgid "Removes the theme name from the font-converter User-Agent. Font conversion keeps working."
msgstr "Elimina el nom del tema de la User-Agent del convertidor de tipus de lletra. La conversió de tipus de lletra continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:689
msgid "Blocks the Freemius analytics events and the usage events server. Templates and widgets keep working."
msgstr "Bloca els esdeveniments d'analítica del Freemius i el servidor d'esdeveniments d'ús. Les plantilles i els ginys continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:693
msgid "Blocks the Mixpanel telemetry. Content AI and module updates keep working."
msgstr "Bloca la telemetría del Mixpanel. Content AI i les actualitzacions de mòduls continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:703
msgid "Blocks the plugin-data telemetry (home URL, admin email, PHP version and limits, OS, WordPress version, user count, MySQL version, server software). Caching keeps working."
msgstr "Bloca la telemetría de dades del complement (URL d'inici, correu de l'administrador, versió i límits del PHP, sistema operatiu, versió del WordPress, nombre d'usuaris, versió del MySQL, programari del servidor). La memòria cau continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:713
msgid "Blocks the plugin-data telemetry (home URL, admin email, PHP and WordPress versions, user count, MySQL version, server software). Security hardening keeps working."
msgstr "Bloca la telemetría de dades del complement (URL d'inici, correu de l'administrador, versions del PHP i del WordPress, nombre d'usuaris, versió del MySQL, programari del servidor). L'enduriment de seguretat continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:717
msgid "Blocks the Freemius analytics events (plugin and theme lists, versions, site URL, language). Shortcodes are fully local."
msgstr "Bloca els esdeveniments d'analítica del Freemius (llistes de complements i temes, versions, URL del lloc, llengua). Els shortcodes són totalment locals."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:727
msgid "Blocks the Posimyth tracker (site URL, PHP version, plugin slugs, theme, install time). Header effects keep working."
msgstr "Bloca el rastrejador del Posimyth (URL del lloc, versió del PHP, slugs de complements, tema, data d'instal·lació). Els efectes de capçalera continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:737
msgid "Removes the PHP version from the API lookups. The WordPress version and the plugin/theme versions are kept because the integrity checks are the service itself."
msgstr "Elimina la versió del PHP de les consultes a l'API. La versió del WordPress i les versions de complements i temes es conserven perquè les comprovacions d'integritat són el servei mateix."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:741
msgid "Blocks the BSF analytics report (domain, PHP OS, server software, MySQL/PHP versions, WordPress version). Forms and the AI builder keep working."
msgstr "Bloca l'informe d'analítica del BSF (domini, sistema operatiu del PHP, programari del servidor, versions del MySQL/PHP, versió del WordPress). Els formularis i el maquetador d'IA continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:745
msgid "Blocks the BSF analytics report (domain, PHP OS, server software, MySQL/PHP versions, WordPress version). SEO analysis keeps working."
msgstr "Bloca l'informe d'analítica del BSF (domini, sistema operatiu del PHP, programari del servidor, versions del MySQL/PHP, versió del WordPress). L'anàlisi SEO continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:749
msgid "Blocks the Freemius analytics events (plugin and theme lists, versions, site URL, language). Tables are fully local."
msgstr "Bloca els esdeveniments d'analítica del Freemius (llistes de complements i temes, versions, URL del lloc, llengua). Les taules són totalment locals."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:759
msgid "Removes the server IP, site URL and version headers from every API request. Template downloads keep working with your token."
msgstr "Elimina la IP del servidor, la URL del lloc i les capçaleres de versió de cada petició a l'API. Les baixades de plantilles continuen funcionant amb el vostre testimoni."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:773
msgid "Blocks the StellarWP telemetry and removes the WordPress version, PHP version and user counts from the license/update validation. The domain is kept as the account identifier."
msgstr "Bloca la telemetría de StellarWP i elimina la versió del WordPress, la versió del PHP i els nombres d'usuaris de la validació de llicència/actualització. El domini es conserva com a identificador del compte."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:783
msgid "Blocks the weekly sync and the opt-in subscribe (home URL, email, name, plugin list, WordPress version, locale, PHP version). Translations keep working."
msgstr "Bloca la sincronització setmanal i la subscripció d'acceptació (URL d'inici, correu, nom, llista de complements, versió del WordPress, llengua, versió del PHP). Les traduccions continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:787
msgid "Blocks the Freemius analytics events (plugin and theme lists, versions, site URL, language). Widgets keep working."
msgstr "Bloca els esdeveniments d'analítica del Freemius (llistes de complements i temes, versions, URL del lloc, llengua). Els ginys continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:797
msgid "Removes the Referer header (your network site URL) from the IP info lookups. Backups go to the destinations you configured."
msgstr "Elimina la capçalera Referer (la URL del lloc de la vostra xarxa) de les consultes d'informació d'IP. Les còpies de seguretat van a les destinacions que hàgiu configurat."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:807
msgid "Blocks the survey requests that include the home URL and email. CDN and cache configuration keep working."
msgstr "Bloca les peticions d'enquesta que inclouen la URL d'inici i el correu. La configuració de CDN i memòria cau continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:811
msgid "Blocks the BSF analytics report (WordPress version, PHP version, locale, site URL). Cart tracking and webhooks keep working."
msgstr "Bloca l'informe d'analítica del BSF (versió del WordPress, versió del PHP, llengua, URL del lloc). El seguiment del cistell i els webhooks continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:820
msgid "Blocks the feedback requests (server software, PHP version, MySQL version, WordPress and WooCommerce versions, locale, multisite). Checkout fields keep working."
msgstr "Bloca les peticions de comentaris (programari del servidor, versió del PHP, versió del MySQL, versions del WordPress i del WooCommerce, llengua, multilloc). Els camps de finalització de compra continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:830
msgid "Blocks the WooCommerce.com Tracks pixel (usage analytics). Store functionality and woocommerce.com connections keep working."
msgstr "Bloca el píxel de Tracks de WooCommerce.com (analítica d'ús). La funcionalitat de la botiga i les connexions amb woocommerce.com continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:840
msgid "Blocks the WooPay tracker pixel. Payments keep working."
msgstr "Bloca el píxel de seguiment del WooPay. Els pagaments continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:850
msgid "Blocks the deactivation feedback (PHP version, WordPress version, server info, plugin list, theme, settings). Swatches keep working."
msgstr "Bloca l'enquesta de desactivació (versió del PHP, versió del WordPress, informació del servidor, llista de complements, tema, ajustos). Les mostres continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:860
msgid "Removes the site URL, PHP and WordPress versions, user agent and PHP limits from the plugin-server requests. File management keeps working."
msgstr "Elimina la URL del lloc, les versions del PHP i del WordPress, l'agent d'usuari i els límits del PHP de les peticions al servidor de complements. La gestió de fitxers continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:869
msgid "Blocks the usage tracking (home URL, PHP version, WordPress version, MySQL version, server, form and entry counts). Forms keep working."
msgstr "Bloca el seguiment d'ús (URL d'inici, versió del PHP, versió del WordPress, versió del MySQL, servidor, recomptes de formularis i entrades). Els formularis continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:878
msgid "Blocks the WPBrigade telemetry (PHP version, WordPress version, server, MySQL version, locale, limits). Header and footer scripts keep working."
msgstr "Bloca la telemetría del WPBrigade (versió del PHP, versió del WordPress, servidor, versió del MySQL, llengua, límits). Els scripts de capçalera i peu continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:887
msgid "Blocks the usage tracking (MySQL version, server software, locale, theme, site count, mailer configuration). Mail delivery keeps working."
msgstr "Bloca el seguiment d'ús (versió del MySQL, programari del servidor, llengua, tema, nombre de llocs, configuració de correu). El lliurament de correu continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:891
msgid "Blocks the Themeisle SDK logger (theme, plugin list, WordPress version). The maintenance page is fully local."
msgstr "Bloca el logger del SDK del Themeisle (tema, llista de complements, versió del WordPress). La pàgina de manteniment és totalment local."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:900
msgid "Removes the WordPress version from the re-smush.it User-Agent. Image optimization keeps working."
msgstr "Elimina la versió del WordPress de la User-Agent del re-smush.it. L'optimització d'imatges continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:910
msgid "Removes the WordPress version from the licensing requests. The license key and site URL (account identifier) are kept."
msgstr "Elimina la versió del WordPress de les peticions de llicenciació. La clau de llicència i la URL del lloc (identificador del compte) es conserven."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:920
msgid "Removes the WordPress environment block (domain, theme and version, full theme and plugin lists) from the connect requests. Review widgets keep working."
msgstr "Elimina el bloc d'entorn del WordPress (domini, tema i versió, llistes completes de temes i complements) de les peticions de connexió. Els ginys de ressenyes continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:930
msgid "Removes the locale and version headers from the promotions requests. SEO features and instant indexing keep working."
msgstr "Elimina les capçaleres de llengua i versió de les peticions de promocions. Les funcions SEO i la indexació instantània continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:934
msgid "Removes the WordPress version, home URL, plugin and theme lists from the WPMU DEV Hub payloads, and the site URL from the User-Agent. Image compression keeps working."
msgstr "Elimina la versió del WordPress, la URL d'inici i les llistes de complements i temes de les càrregues del WPMU DEV Hub, i la URL del lloc de la User-Agent. La compressió d'imatges continua funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:944
msgid "Blocks the anonymized usage reports (database version and type, aggregate counts). Statistics collection stays local."
msgstr "Bloca els informes d'ús anonimitzats (versió i tipus de base de dades, recomptes agregats). La recollida d'estadístiques continua sent local."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:953
msgid "Blocks the deactivation feedback (PHP/MySQL/WordPress versions, site URL, theme, plugin list, email). Chat widgets keep working."
msgstr "Bloca l'enquesta de desactivació (versions del PHP/MySQL/WordPress, URL del lloc, tema, llista de complements, correu). Els ginys de xat continuen funcionant."
#: includes/class-robotstxt-telemetry-plugin-profiles.php:963
msgid "Removes the language from the pricing lookups. The store currency is kept because prices depend on it."
msgstr "Elimina la llengua de les consultes de preus. La moneda de la botiga es conserva perquè els preus en depenen."

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show more