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

WordPress Trac noreply at wordpress.org
Sat Jul 27 12:44:06 UTC 2019


#46336: Support custom WP_PLUGIN_URL in load_script_textdomain()
--------------------------------------+----------------------
 Reporter:  ocean90                   |       Owner:  ocean90
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.3
Component:  I18N                      |     Version:  5.0
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+----------------------
Changes (by ocean90):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"45685" 45685]:
 {{{
 #!CommitTicketReference repository="" revision="45685"
 I18N: Add support for custom `WP_PLUGIN_URL` in
 `load_script_textdomain()`.

 Plugins may not be on the same host/path as the rest of the content. To
 support loading translations for this setup check if the script source
 matches `plugins_url()`.
 Also fixes an undefined index notice when a custom content URL has no
 path.

 Props odminstudios, ocean90.
 Fixes #46336, #46387.
 }}}

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


More information about the wp-trac mailing list