#46336 closed defect (bug) (fixed)
Support custom WP_PLUGIN_URL in load_script_textdomain()
| Reported by: | ocean90 | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.3 |
| Component: | I18N | Version: | 5.0 |
| Severity: | normal | Keywords: | has-patch has-unit-tests has-dev-note |
| Cc: | Focuses: |
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
@
7 years ago
- Keywords has-patch has-unit-tests added; needs-patch removed
- Milestone Future Release → 5.3
- Owner set to
- Status new → accepted
#3
@
7 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
46336.patch also includes a fix for #46387.