WordPress.org

Make WordPress Core

Ticket #34213: 342131.patch

File 342131.patch, 831 bytes (added by sebastian.pisula, 4 years ago)

Support for plugins

  • wp-includes/l10n.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    610610
    611611        // Load the textdomain according to the plugin first
    612612        $mofile = $domain . '-' . $locale . '.mo';
    613         if ( $loaded = load_textdomain( $domain, $path . '/'. $mofile ) )
     613        if ( $loaded = load_textdomain( $domain, WP_LANG_DIR . '/plugins/'. $mofile ) )
    614614                return $loaded;
    615615
    616616        // Otherwise, load from the languages directory
    617         $mofile = WP_LANG_DIR . '/plugins/' . $mofile;
    618         return load_textdomain( $domain, $mofile );
     617        return load_textdomain( $domain, $path . '/' . $mofile );
    619618}
    620619
    621620/**