Automattic / Automattic/jetpack
Activity Log: Polylang causing multiple entries in Activity Log
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
When using [Polylang](https://wordpress.org/plugins/polylang/), activity for users viewing the page and getting their chosen translation are showing up as entries in the Activity Log. From the user in 1561676-zen, this is what they're seeing:
> I'm using Polylang multilingual support and everytime a page or post is shown to a user in a different language, I find in the activity protocol messages such as:
> - Language set to 'Deutsch'
> - Setting changed
> - Greeting text changed from 'Rispondi' to 'Kommentar verfassen'
> - Jetpack setting changed
> - Language set to 'English'
> - Setting changed
> - Greeting text changed from 'Kommentar verfassen' to 'Leave a Reply'
> - Jetpack setting changed
I logged into their WordPress.com dashboard, and I can see the different language entries behind the "upgrade" prompt:

The user is also concerned that this is causing traffic issues and extra load on their site.
Marked it as High priority as it would impact anyone using Polylang.
Contributor guide
Research direction
Start by reproducing the Activity Log behavior with Polylang enabled and a page viewed in different languages. Trace the entries for language and setting changes, then verify that normal translation views no longer create those entries or add unnecessary site load.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100