Automattic / Automattic/jetpack

Comments: reduce activity log spam from WPML translations

Open
#31,690 4 comments 0 reactions 0 assignees View on GitHub
[Feature] Activity Log [Feature] Comments [Focus] Compatibility [Focus] i18n [Package] Sync [Pri] Normal [Status] Stale Bug Customer Report [LEGACY]
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

This is a feature request from a user who is using WPML for English, Arabic, and Turkish translations on their site. The Activity Log is spammed any time a translated page with a Jetpack comment form is viewed. The activity log indicates there is a Server change to the Comments "Greeting Text" setting under `wp-admin/options-discussion.php`.

User report: 6497944-zd-woothemes

This value does not appear to be changing in the database and always shows as "Leave a Reply". This is an example of what the user sees: ![MADq7O.png](https://github.com/Automattic/jetpack/assets/121042930/0c9889d9-fe60-4c65-af6f-93d467a580da)

WPML support stated the following:

> Essentially, WPML is only serving the version of that text for the language requested, but it is the same text, it's not changing in the DB every time, the issue is that Jetpack detects that as if the text was changed. Jetpack is detecting as if it is a new text, even though it is the same text stored the first time you translated it. This change would have to be made inside Jetpack code.

Contributor guide

Open the contributing guide

Research direction

The report points to wp-admin/options-discussion.php and the Activity Log, but names no Jetpack source file or test. Start by locating the code that detects the Comments “Greeting Text” server change and reproduce the WPML language-switching case; done means repeated page views no longer create false change entries while genuine setting changes remain logged.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.