diff --git a/src/wp-includes/l10n.php b/src/wp-includes/l10n.php index 229c3bbb25..ab19f0cd0e 100644 --- a/src/wp-includes/l10n.php +++ b/src/wp-includes/l10n.php @@ -913,7 +913,7 @@ function load_script_textdomain( $handle, $domain, $path = null ) { global $wp_scripts; $path = untrailingslashit( $path ); - $locale = is_admin() ? get_locale() : get_user_locale(); + $locale = determine_locale(); // If a path was given and the handle file exists simply return it. $file_base = $domain === 'default' ? $locale : $domain . '-' . $locale;