Ticket #45467: 45467.patch
File 45467.patch, 1.4 KB (added by , 6 years ago) |
---|
-
src/wp-admin/includes/plugin.php
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 $json_translation_files = glob( WP_LANG_DIR . '/plugins/' . $plugin_slug . '-' . $translation . '-*.json' ); 1053 if ( $json_translation_files ) { 1054 array_map( array( $wp_filesystem, 'delete' ), $json_translation_files ); 1055 } 1051 1056 } 1052 1057 } 1053 1058 } -
src/wp-admin/includes/theme.php
88 88 foreach ( $translations as $translation => $data ) { 89 89 $wp_filesystem->delete( WP_LANG_DIR . '/themes/' . $stylesheet . '-' . $translation . '.po' ); 90 90 $wp_filesystem->delete( WP_LANG_DIR . '/themes/' . $stylesheet . '-' . $translation . '.mo' ); 91 92 $json_translation_files = glob( WP_LANG_DIR . '/themes/' . $stylesheet . '-' . $translation . '-*.json' ); 93 if ( $json_translation_files ) { 94 array_map( array( $wp_filesystem, 'delete' ), $json_translation_files ); 95 } 91 96 } 92 97 } 93 98