#29860 closed defect (bug) (fixed)
Remove theme/plugin translations when deleting a theme/plugin
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | I18N | Keywords: | has-patch |
Focuses: | Cc: |
Description
When deleting a theme or a plugin the translation files remain in WP_LANG_DIR, when they were installed via the new Translation API (language packs). We should remove them too.
Too keep it simple I attached a patch which doesn't introduce any new API.
I changed wp_get_installed_translations()
to return only translations which also have a .mo file since just a .po file isn't enough.
Attachments (2)
Change History (5)
Note: See
TracTickets for help on using
tickets.
In 29856: