Make WordPress Core

Opened 4 years ago

Last modified 11 months ago

#49117 new defect (bug)

WP default themes' translations keep being installed when updating WordPress

Reported by: 3dwebvision's profile 3dwebvision Owned by:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version: 5.3.2
Component: Upgrade/Install Keywords: reporter-feedback
Focuses: Cc:

Description

This happens every website I maintain, and it has been happening ever since I got in the field of web design with wordpress. I'm reporting it because I couldn't find any refference to the issue on the net.

To keep the clutter to a minimum, I regularly add following lines to config.php:

define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', true );
define( 'WP_DEFAULT_THEME', 'whatever-the-theme-is' );

WP default themes' (3 twentywhatever themes) translations keep being installed in wp-content/languages/themes when updatig wordpress, no matter what WP version it is updating to, or what the default theme is.

Not a big issue, but still a bug and a nuisance.

Change History (6)

#1 @SergeyBiryukov
4 years ago

  • Summary changed from WP default themes' translations keep being installed when updatig wordpress to WP default themes' translations keep being installed when updating WordPress

#2 follow-up: @dd32
4 years ago

WP default themes' (3 twentywhatever themes) translations keep being installed in wp-content/languages/themes when updatig wordpress, no matter what WP version it is updating to, or what the default theme is.

WordPress installs/updates the translations for all installed themes, regardless of what the default theme is.

To clarify, do you have the themes installed on the site? CORE_UPGRADE_SKIP_NEW_BUNDLED should prevent future default themes from being installed, as long as it's been defined correctly in the config file (Before the wp-settings.php line)

#3 @ocean90
4 years ago

  • Keywords reporter-feedback added

#4 in reply to: ↑ 2 @3dwebvision
4 years ago

Replying to dd32:

WP default themes' (3 twentywhatever themes) translations keep being installed in wp-content/languages/themes when updatig wordpress, no matter what WP version it is updating to, or what the default theme is.

WordPress installs/updates the translations for all installed themes, regardless of what the default theme is.

To clarify, do you have the themes installed on the site? CORE_UPGRADE_SKIP_NEW_BUNDLED should prevent future default themes from being installed, as long as it's been defined correctly in the config file (Before the wp-settings.php line)

No, the themes are not being installed when wordpress is being updated. Only translation files. And to clarify even more, CORE_UPGRADE_SKIP_NEW_BUNDLED is line 183, and wp-settings.php line is 209.

#5 @3dwebvision
4 years ago

Btw, this happens only on wordpress update. Not on theme/plugin/translation update.

#6 @oglekler
11 months ago

After update from 6.2 to 6.2.2 when only one custom theme exists in /wp-content/themes/ in /wp-content/languages/themes/ appeared several default themes translations: Twenty Twenty-One, Twenty Twenty-Two and Twenty Twenty-Three and it turned out that there were already translations for the 4 previous themes.

Last edited 11 months ago by oglekler (previous) (diff)
Note: See TracTickets for help on using tickets.