[wp-trac] [WordPress Trac] #63944: load_script_textdomain doesn't use plugin's DomainPath for translation lookup
WordPress Trac
noreply at wordpress.org
Mon Sep 8 07:24:40 UTC 2025
#63944: load_script_textdomain doesn't use plugin's DomainPath for translation
lookup
------------------------------------------+---------------------
Reporter: jsnajdr | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.9
Component: I18N | Version: 5.0
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+---------------------
Changes (by swissspidy):
* keywords: => needs-patch needs-unit-tests
* version: trunk => 5.0
* type: defect (bug) => enhancement
* milestone: Awaiting Review => 6.9
Comment:
I would call this an enhancement, but yes it would definitely help with
#54797 (I previously suggested reusing `Domain Path` there after #62244
landed).
Inside `wp_set_script_translations`/`WP_Scripts::set_translations`, if
`$path` is not provided, we can take the `$domain` arg and look it up in
`WP_Textdomain_Registry` to find the "local" path.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63944#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list