diff --git src/wp-admin/includes/plugin.php src/wp-admin/includes/plugin.php
index 419ba1659c..63060fa004 100644
|
|
function delete_plugins( $plugins, $deprecated = '' ) { |
1048 | 1048 | foreach ( $translations as $translation => $data ) { |
1049 | 1049 | $wp_filesystem->delete( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '.po' ); |
1050 | 1050 | $wp_filesystem->delete( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '.mo' ); |
| 1051 | |
| 1052 | $files = glob( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '-*.json' ); |
| 1053 | |
| 1054 | foreach ( $files as $file ) { |
| 1055 | $wp_filesystem->delete( $file ); |
| 1056 | } |
1051 | 1057 | } |
1052 | 1058 | } |
1053 | 1059 | } |