Skip to content

Commit

Permalink
I18N: Switch locale to admin locale when sending admin notifications.
Browse files Browse the repository at this point in the history
If sending an email to the site administrator's email address, look up if a user with the same email exists and switch to that user's locale.
If not, falls back to the site locale as usual.

Props benniledl, swissspidy, mukesh27.
Fixes #61518.


git-svn-id: https://develop.svn.wordpress.org/trunk@59128 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
swissspidy committed Sep 30, 2024
1 parent c9a6a39 commit a1fae25
Show file tree
Hide file tree
Showing 2 changed files with 283 additions and 190 deletions.
Loading

0 comments on commit a1fae25

Please sign in to comment.