mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@25536 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -627,7 +627,7 @@ function get_available_languages( $dir = null ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get installed language data.
|
||||
* Get installed translations.
|
||||
*
|
||||
* Looks in the wp-content/languages directory for translations of
|
||||
* plugins or themes.
|
||||
@@ -637,7 +637,7 @@ function get_available_languages( $dir = null ) {
|
||||
* @param string $type What to search for. Accepts 'plugins', 'themes'.
|
||||
* @return array Array of language data.
|
||||
*/
|
||||
function wp_get_installed_language_data( $type ) {
|
||||
function wp_get_installed_translations( $type ) {
|
||||
if ( $type !== 'themes' && $type !== 'plugins' )
|
||||
return array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user