i18n: Remove the `wp_get_jed_locale_data()` function.

This function was used as a translation workaround in the Gutenberg plugin, it has been replaced in core with the `wp_set_script_translations()` functionality, instead.

See #45111.


Built from https://develop.svn.wordpress.org/branches/5.0@43910


git-svn-id: http://core.svn.wordpress.org/branches/5.0@43742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Gary Pendergast 2018-11-21 01:03:48 +00:00
parent bf1668333f
commit f2dc6be776
2 changed files with 1 additions and 30 deletions

View File

@ -1469,32 +1469,3 @@ function is_locale_switched() {
return $wp_locale_switcher->is_switched(); return $wp_locale_switcher->is_switched();
} }
/**
* Returns Jed-formatted localization data.
*
* @since 5.0.0
*
* @param string $domain Translation domain.
* @return array Jed-formatted localization data.
*/
function wp_get_jed_locale_data( $domain ) {
$translations = get_translations_for_domain( $domain );
$locale = array(
'' => array(
'domain' => $domain,
'lang' => determine_locale(),
),
);
if ( ! empty( $translations->headers['Plural-Forms'] ) ) {
$locale['']['plural_forms'] = $translations->headers['Plural-Forms'];
}
foreach ( $translations->entries as $msgid => $entry ) {
$locale[ $msgid ] = $entry->translations;
}
return $locale;
}

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.0-beta5-43909'; $wp_version = '5.0-beta5-43910';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.