[wp-trac] [WordPress Trac] #49132: Remove translation files when a plugin or a theme no longer exists

WordPress Trac noreply at wordpress.org
Sun Jan 5 00:23:01 UTC 2020


#49132: Remove translation files when a plugin or a theme no longer exists
-------------------------+-----------------------------
 Reporter:  audrasjb     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  I18N         |    Version:
 Severity:  normal       |   Keywords:  needs-patch
  Focuses:               |
-------------------------+-----------------------------
 That would be nice to remove existing translation files when a plugin or a
 theme is manually deleted (by FTP or whatever).

 Themes/plugins translation files are already removed when the theme/plugin
 is deleted with WordPress Admin, but still exist when the theme/plugin are
 manually deleted by FTP or so.

 To reproduce the issue:

 1. Activate a plugin which is translated into your website language (other
 than en_US)
 2. Delete the plugin folder (by FTP or whatever)
 3. Problem: the translation files still exists in `wp-
 content/languages/plugins` folder

 If you delete the plugin with WP Admin Plugins screen, the translation
 files are actually deleted.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49132>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list