Opened 4 weeks ago
Last modified 6 days ago
#62016 reopened defect (bug)
The .json files with theme translations are loaded only if they are present in the plugins path
Reported by: | itapress | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 6.7 | Priority: | normal |
Severity: | normal | Version: | 6.6 |
Component: | I18N | Keywords: | needs-patch |
Focuses: | Cc: |
Description
Hello.
Following this change: https://github.com/WordPress/WordPress/commit/54a61e9c9b36970fe18b33fe2c35a5823617ffca
Theme translation .json files are loaded only if present in the "wp-content/languages/plugins/" path and not from the “wp-content/languages/themes/” path.
I discovered the problem and tested it with the Dutch translation of the Kadence and Astra themes.
Thanks.
Change History (12)
#1
@
4 weeks ago
- Milestone changed from Awaiting Review to 6.7
- Owner set to swissspidy
- Status changed from new to reviewing
- Version changed from 6.6.1 to 6.6
This ticket was mentioned in PR #7423 on WordPress/wordpress-develop by @swissspidy.
2 weeks ago
#2
- Keywords has-patch added
The change in https://core.trac.wordpress.org/ticket/60891 / https://core.trac.wordpress.org/changeset/57922 was not tested enough with themes that load script translations. It caused a regression where WP tried to look up script translations for a theme in wp-content/languages/plugins
.
Even when using a custom WP_PLUGIN_DIR
/WP_PLUGIN_URL
configuration, we should always use the correct path for themes and plugins alike.
To-do:
- [ ] Add unit tests
Trac ticket: https://core.trac.wordpress.org/ticket/62016
#4
@
10 days ago
- Keywords has-unit-tests added; needs-unit-tests removed
@itapress Does the proposed patch fix the issue for you?
@swissspidy commented on PR #7423:
8 days ago
#8
Committed in https://core.trac.wordpress.org/changeset/59126
Thanks for your report! I will look into it.