From 740d197731c45f5c8b157a50a0aab8631bbe6a96 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Thu, 17 Dec 2015 18:31:27 +0000 Subject: [PATCH] Plugins: Remove the list of files which will be deleted when uninstalling a plugin. See #34439. Built from https://develop.svn.wordpress.org/trunk@35995 git-svn-id: http://core.svn.wordpress.org/trunk@35960 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/plugins.php | 30 +----------------------------- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 93aec79d78..18464454ad 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -256,14 +256,13 @@ if ( $action ) { ?>
$data ) { @@ -288,16 +281,6 @@ if ( $action ) { } } } - - // Add translation files. - if ( ! empty( $plugin_translations[ $plugin_slug ] ) ) { - $translations = $plugin_translations[ $plugin_slug ]; - - foreach ( $translations as $translation => $data ) { - $files_to_delete[] = $plugin_slug . '-' . $translation . '.po'; - $files_to_delete[] = $plugin_slug . '-' . $translation . '.mo'; - } - } } } $plugins_to_delete = count( $plugin_info ); @@ -353,17 +336,6 @@ if ( $action ) {
- -

-