Make WordPress Core

Timestamp:
05/26/2023 05:55:40 PM (3 years ago)
Author:
swissspidy
Message:

I18N: Refactor determine_locale() for performance and readability.

Refactors the function to avoid unnecessary get_locale() calls and slightly improve performance, while keeping it readable.

Adds tests.

Props Cybr, spacedmonkey, swissspidy.
Fixes #58317.

File:
1 added

Note: See TracChangeset for help on using the changeset viewer.