Make WordPress Core

Opened 15 months ago

Last modified 3 months ago

#56505 new defect (bug)

Un-necessary Language Files are Installed

Reported by: domainsupport's profile domainsupport Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.0.2
Component: Upgrade/Install Keywords:
Focuses: Cc:

Description

When your WordPress installation is set to a language other than "English (United States)", each time a core update is installed (or re-installed), several language files are added to /wp-content/languages/ whether they are required or not ...

/wp-content/languages/plugins/akismet-en GB.mo
/wp-content/languages/plugins/akismet-en GB.po
/wp-content/languages/themes/twentvtwenty-enGB.mo
/wp-content/languages/themes/twentytwenty-enGB.po
/wp-content/languages/themes/twentvtwentvone-enGB.mo
/wp-content/languages/themes/twentytwentyone-enGB.po
/wp-content/languages/themes/twentytwentytwo-enGB.mo
/wp-content/languages/themes/twentytwentytwo-enGB.po

I believe that these files should only be installed if the relevant plugin or theme is installed.

Oliver

Change History (5)

#1 @domainsupport
6 months ago

This issue persists in v6.2.2

#2 @cutu234
3 months ago

I totally agree. It's a pain in the neck. The issue is still there in 6.3.1.

#3 @domainsupport
3 months ago

Glad I’m not the only one!

#4 @cutu234
3 months ago

It's even worse. After each and every update I have to remove files like config-sample.php. There is no reason to recreate this file in an existing installation. I use Mainwp for maintaining sites and wrote a script to remove all unnecessary files after updates. Works great, but not everyone needs or wants a remote maintenance system.

#5 @domainsupport
3 months ago

Yes, I saw that too. And I've also created a plugin to automatically detect and delete un-used language files. Would be good to get this behaviour fixed.

Note: See TracTickets for help on using tickets.