Make WordPress Core

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#46446 closed defect (bug) (worksforme)

Language files are not deleted when the twenty-* themes are deleted

Reported by: mumbomedia's profile mumbomedia Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.1
Component: I18N Keywords:
Focuses: Cc:

Description

When I deinstall the default theme Twenty-nineteen the language files are still present in the subfolder themes of /wp-content/languages/.
There are also languages files from the old default themes twenty-seventeen ...

I assume that in the deinstallation functon there are some unlink calls missing.

Change History (3)

#1 @swissspidy
6 years ago

  • Component changed from Themes to I18N

#2 @justinahinon
5 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

Hey @mumbomedia. Thanks for opening this ticket.

When you say "deinstallation" do you mean when you switch to another theme, or when you delete the theme from the site?

In the first case, the themes languages files are kept into the wp-content/languages/themes folder which is normal.

In the second case, when the theme is deleted, the themes languages files are correctly deleted.

Tested on WordPress 5.1 and WordPress 5.5.

I'll close this ticket as worksforme .

Feel free to reopen it if you still notice the behaviour.

#3 @SergeyBiryukov
5 years ago

  • Milestone Awaiting Review deleted

Related: #29860, #45467, #49132.

Note: See TracTickets for help on using tickets.