Make WordPress Core

Ticket #46387: 46387.3.diff

File 46387.3.diff, 508 bytes (added by odminstudios, 6 years ago)
  • src/wp-includes/l10n.php

    diff --git a/src/wp-includes/l10n.php b/src/wp-includes/l10n.php
    index bd57378a5d..b24559c5e1 100644
    a b function load_script_textdomain( $handle, $domain = 'default', $path = null ) { 
    947947
    948948        // If the host is the same or it's a relative URL.
    949949        if (
     950                isset( $content_url['path'] ) &&
    950951                strpos( $src_url['path'], $content_url['path'] ) === 0 &&
    951952                ( ! isset( $src_url['host'] ) || $src_url['host'] === $content_url['host'] )
    952953        ) {