[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 00:03:45 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):
Replying to [comment:7 fierevere]:
> https://core.trac.wordpress.org/attachment/ticket/45528/45528.patch
> applied patch, but still seeing same problem with translation
Is there a problem with conditional statements that determine whether host
name match?
Current:
{{{
( ! isset( $src_url['host'] ) || $src_url['host'] !== $content_url['host']
)
}}}
In this statement, even if the host names match, it will be false.
I propose the following conditional expression.
{{{
( ! isset( $src_url['host'] ) || $src_url['host'] === $content_url['host']
)
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45528#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list