[wp-trac] [WordPress Trac] #46336: Support custom WP_PLUGIN_URL in load_script_textdomain()

WordPress Trac noreply at wordpress.org
Sun Feb 24 18:33:57 UTC 2019


#46336: Support custom WP_PLUGIN_URL in load_script_textdomain()
--------------------------+----------------------------
 Reporter:  ocean90       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  I18N          |    Version:  5.0
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+----------------------------
 `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()`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46336>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list