[wp-trac] [WordPress Trac] #45528: load_script_textdomain() doesn't load translations when WP installed in a subdirectory with custom content dir

WordPress Trac noreply at wordpress.org
Tue Dec 18 23:09:56 UTC 2018


#45528: load_script_textdomain() doesn't load translations when WP installed in a
subdirectory with custom content dir
-------------------------------------------------+-------------------------
 Reporter:  fierevere                            |       Owner:  herregroen
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.0.2
Component:  I18N                                 |     Version:  5.0
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-screenshots has-patch has-unit-  |     Focuses:
  tests fixed-5.0                                |
-------------------------------------------------+-------------------------
Changes (by desrosj):

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


Comment:

 In [changeset:"44310" 44310]:
 {{{
 #!CommitTicketReference repository="" revision="44310"
 I18N: Fix JavaScript translations for subdirectory installations.

 Fixes the `load_script_textdomain` function not resolving the md5 hash
 based on the relative path for WordPress installations in a subdirectory.
 Also adds a filter to allow sites using CDNs or other alternative asset
 locations to filter the relative path resolution.

 Props akirk, fierevere, swissspidy, mypacecreator, babaevan, tmatsuur,
 ocean90, herregroen.

 Merges [44209] to trunk.

 Fixes #45528.
 }}}

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


More information about the wp-trac mailing list