WordPress.org

Make WordPress Core

Ticket #45465: 45465.patch

File 45465.patch, 517 bytes (added by ocean90, 5 months ago)
  • src/wp-includes/l10n.php

     
    889889        global $wp_scripts;
    890890
    891891        $path   = untrailingslashit( $path );
    892         $locale = is_admin() ? get_locale() : get_user_locale();
     892        $locale = determine_locale();
    893893
    894894        // If a path was given and the handle file exists simply return it.
    895895        $file_base       = $domain === 'default' ? $locale : $domain . '-' . $locale;