WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/21/2013 04:07:34 AM (8 years ago)
Author:
nacin
Message:

Accept and store translations data from the plugin and theme update check endpoints.

Send site locale. Rename wp_get_installed_language_data() to wp_get_installed_translations().

see #18200.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/l10n.php

    r25520 r25536  
    628628
    629629/**
    630  * Get installed language data.
     630 * Get installed translations.
    631631 *
    632632 * Looks in the wp-content/languages directory for translations of
     
    638638 * @return array Array of language data.
    639639 */
    640 function wp_get_installed_language_data( $type ) {
     640function wp_get_installed_translations( $type ) {
    641641    if ( $type !== 'themes' && $type !== 'plugins' )
    642642        return array();
Note: See TracChangeset for help on using the changeset viewer.