WordPress.org

Make WordPress Core

Changeset 44278


Ignore:
Timestamp:
12/17/2018 07:35:10 PM (7 months ago)
Author:
desrosj
Message:

l10n: Ensure JavaScript language packages are loaded for the user locale.

load_script_textdomain() had a reversed check to decide if the user locale should be loaded. This check is now replaced with determine_local().

Props ocean90.

Merges [43959] into trunk.

Fixes #45465.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/wp-includes/l10n.php

    r44181 r44278  
    914914
    915915    $path   = untrailingslashit( $path );
    916     $locale = is_admin() ? get_locale() : get_user_locale();
     916    $locale = determine_locale();
    917917
    918918    // If a path was given and the handle file exists simply return it.
Note: See TracChangeset for help on using the changeset viewer.