-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Admin-UI: Avoid loading l10n too early in admin (#35279)
When on a plan with anti-spam, the Akismet menu is being added during the 'plugins_loaded' action, which is before the user has been determined and so it loads the l10n in the site language for the plugin's text domain. Delay that addition until the 'admin_menu' action (at the same time as when we remove Akismet's copy of the menu) to avoid triggering the l10n so early. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/7699587618
- Loading branch information
Showing
7 changed files
with
110 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.