[wp-trac] [WordPress Trac] #29860: Remove theme/plugin translations when deleting a theme/plugin
WordPress Trac
noreply at wordpress.org
Sat Oct 4 14:05:56 UTC 2014
#29860: Remove theme/plugin translations when deleting a theme/plugin
--------------------------+-----------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.1
Component: I18N | Version:
Severity: normal | Keywords: has-patch
Focuses: |
--------------------------+-----------------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29860>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list