diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index d1afbe4832..def655b414 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -889,7 +889,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; diff --git a/wp-includes/version.php b/wp-includes/version.php index 3ad000a1bd..df99baa9d5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-RC2-43958'; +$wp_version = '5.0-RC2-43959'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.