WordPress.org

Make WordPress Core

Opened 5 months ago

#46336 new defect (bug)

Support custom WP_PLUGIN_URL in load_script_textdomain()

Reported by: ocean90 Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 5.0
Component: I18N Keywords: needs-patch
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().

Change History (0)

Note: See TracTickets for help on using tickets.