[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 8 10:50:09 UTC 2018
#45528: load_script_textdomain() doesn't load translations when WP installed in a
subdirectory with custom content dir
-------------------------------------------------+-------------------------
Reporter: fierevere | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0.1
Component: I18N | Version: 5.0
Severity: normal | Resolution:
Keywords: has-screenshots needs-unit-tests | Focuses:
has-patch |
-------------------------------------------------+-------------------------
Comment (by tmatsuur):
> {{{
>
> [Sat Dec 8 12:47:50 2018] string(44) "/wordpress/wp-
includes/js/dist/blocks.min.js"
>
> [Sat Dec 8 12:47:50 2018] string(11) "/wp-content"
>
> [Sat Dec 8 12:47:50 2018] string(10) "/wordpress"
>
> [Sat Dec 8 12:47:50 2018] string(9) "localhost"
>
> [Sat Dec 8 12:47:50 2018] string(9) "localhost"
>
> [Sat Dec 8 12:47:50 2018] string(9) "localhost"
>
> [Sat Dec 8 12:47:50 2018] branch neither
> [Sat Dec 8 12:47:50 2018] bool(false)
> }}}
The JavaScript file under the wp-includes directory is false under the
condition of the previous strpos function.
{{{
strpos( $src_url['path'], $content_url['path'] ) === 0
}}}
In this case it is not judged whether the host name match.
I think that it is necessary to verify with JavaScript files in the theme
and plugins below the wp-content directory.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45528#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list