[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
Sat Dec 15 12:54:58 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 needs- | Focuses:
testing has-unit-tests |
-------------------------------------------------+-------------------------
Changes (by herregroen):
* owner: (none) => herregroen
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"44209" 44209]:
{{{
#!CommitTicketReference repository="" revision="44209"
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.
Fixes #45528.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45528#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list