WordPress.org

Make WordPress Core

Ticket #28673: 28673-locale.diff

File 28673-locale.diff, 429 bytes (added by tellyworth, 8 years ago)

Tiny patch to help with the server side: send the locale in API calls.

  • wp-admin/includes/plugin-install.php

     
    3434        if ( !isset($args->per_page) )
    3535                $args->per_page = 24;
    3636
     37        if ( !isset($args->locale) )
     38                $args->locale = get_locale();
     39
    3740        /**
    3841         * Override the Plugin Install API arguments.
    3942         *