Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#42041 closed defect (bug) (invalid)

Localization files for core themes in the languages directory should not exist if core theme is not installed.

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

Description

I'm not sure if the language files were kept in the wp-content/languages when I removed the twenty* themes from the admin or if they were downloaded back when updated WordPress to 4.8.2. Either way, themes are not presented, so shouldn't be the localization files.

Currently I don't have a test system to reproduce it. I'm sorry.

wp-content/languages/themes/twentyfifteen-pt_BR.mo
wp-content/languages/themes/twentyseventeen-pt_BR.mo
wp-content/languages/themes/twentytwelve-pt_BR.po
wp-content/languages/themes/twentythirteen-pt_BR.po
wp-content/languages/themes/twentyfourteen-pt_BR.mo
wp-content/languages/themes/twentytwelve-pt_BR.mo
wp-content/languages/themes/twentyfifteen-pt_BR.po
wp-content/languages/themes/twentyfourteen-pt_BR.po
wp-content/languages/themes/twentythirteen-pt_BR.mo
wp-content/languages/themes/twentysixteen-pt_BR.po
wp-content/languages/themes/twentyseventeen-pt_BR.po
wp-content/languages/themes/twentysixteen-pt_BR.mo

Change History (7)

#1 follow-up: @swissspidy
7 years ago

  • Focuses administration template removed
  • Version changed from 4.8.1 to 3.7

Hey there,

Thanks for your report and welcome to Trac!

As mentioned in #18200, translation files are not deleted when removing a plugin or theme. So on your site these aren't installed with the latest WordPress update, but they were there before.

#2 in reply to: ↑ 1 @henriquemattos
7 years ago

Replying to swissspidy:

Hey there,

Thanks for your report and welcome to Trac!

As mentioned in #18200, translation files are not deleted when removing a plugin or theme. So on your site these aren't installed with the latest WordPress update, but they were there before.

Wow! I'm really impressed with the speed of the assignment. Thank you very much.

As mentioned, I didn't check before if the files were there. I removed the unused themes and a couple days later there was the WP update. After that, Sucuri Scanner started mentioning this files in the Core Integrity Check. I had to delete them manually.

Let me know if any further information should be provided.

Kindly regards,
Henrique Mattos

#3 @ocean90
7 years ago

If you delete a theme or plugin in wp-admin the translations files should be removed, see [29856].

#4 @ocean90
7 years ago

  • Keywords reporter-feedback added

#5 @henriquemattos
7 years ago

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

Hi, @ocean90 . As I mentioned, I'm not able to reproduce it now because I don't have a WP installation to try it. As soon as I can setup a new system, I will try to reproduce it once again.

My concern is that either I removed the Twenty* themes from the Admin and the language files kept there or they came back when I upgraded to 4.8.2.

Kindly regards,
Henrique Mattos

#6 @swissspidy
7 years ago

  • Keywords reporter-feedback removed
  • Resolution changed from maybelater to invalid

#7 @netweb
7 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.