#46336 closed defect (bug) (fixed)
Support custom WP_PLUGIN_URL in load_script_textdomain()
Reported by: | ocean90 | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | 5.0 |
Component: | I18N | Keywords: | has-patch has-unit-tests has-dev-note |
Focuses: | Cc: |
Description
load_script_textdomain()
is currently unable to find the JSON file in WP_LANG_DIR
when a custom WP_PLUGIN_URL
is defined. By default its defined with WP_CONTENT_URL . '/plugins'
so it's covered by the content_url()
check.
To make it work with a non-default URLs we should add an additional check for plugins_url()
.
Attachments (1)
Change History (4)
#1
@
5 years ago
- Keywords has-patch has-unit-tests added; needs-patch removed
- Milestone changed from Future Release to 5.3
- Owner set to ocean90
- Status changed from new to accepted
#3
@
5 years ago
- Keywords has-dev-note added
Mentioned in the Miscellaneous Developer Focused Changes dev note for 5.3: https://make.wordpress.org/core/2019/10/15/miscellaneous-developer-focused-changes-in-5-3/
Note: See
TracTickets for help on using
tickets.
46336.patch also includes a fix for #46387.