I18N: Ensure `.l10n.php` files are deleted when upgrading language packs.
Props amieiro. See #59656. Built from https://develop.svn.wordpress.org/trunk@57381 git-svn-id: http://core.svn.wordpress.org/trunk@56887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ce230b8742
commit
2e7358dec6
|
@ -409,12 +409,16 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
|||
$files = array(
|
||||
$remote_destination . $language_update->language . '.po',
|
||||
$remote_destination . $language_update->language . '.mo',
|
||||
$remote_destination . $language_update->language . '.l10n.php',
|
||||
$remote_destination . 'admin-' . $language_update->language . '.po',
|
||||
$remote_destination . 'admin-' . $language_update->language . '.mo',
|
||||
$remote_destination . 'admin-' . $language_update->language . '.l10n.php',
|
||||
$remote_destination . 'admin-network-' . $language_update->language . '.po',
|
||||
$remote_destination . 'admin-network-' . $language_update->language . '.mo',
|
||||
$remote_destination . 'admin-network-' . $language_update->language . '.l10n.php',
|
||||
$remote_destination . 'continents-cities-' . $language_update->language . '.po',
|
||||
$remote_destination . 'continents-cities-' . $language_update->language . '.mo',
|
||||
$remote_destination . 'continents-cities-' . $language_update->language . '.l10n.php',
|
||||
);
|
||||
|
||||
$json_translation_files = glob( $language_directory . $language_update->language . '-*.json' );
|
||||
|
@ -427,6 +431,7 @@ class Language_Pack_Upgrader extends WP_Upgrader {
|
|||
$files = array(
|
||||
$remote_destination . $language_update->slug . '-' . $language_update->language . '.po',
|
||||
$remote_destination . $language_update->slug . '-' . $language_update->language . '.mo',
|
||||
$remote_destination . $language_update->slug . '-' . $language_update->language . '.l10n.php',
|
||||
);
|
||||
|
||||
$language_directory = $language_directory . $language_update->type . 's/';
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.5-alpha-57380';
|
||||
$wp_version = '6.5-alpha-57381';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue