WordPress.org

Make WordPress Core

Ticket #34114: Fix_notice_when_filter_override_load_textdomain_is_ture.patch

File Fix_notice_when_filter_override_load_textdomain_is_ture.patch, 632 bytes (added by danielhuesken, 5 years ago)

Fix notice when filter override_load_textdomain is ture

  • src/wp-includes/l10n.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    848848 */
    849849function get_translations_for_domain( $domain ) {
    850850        global $l10n;
    851         if ( isset( $l10n[ $domain ] ) || _load_textdomain_just_in_time( $domain ) ) {
     851        if ( isset( $l10n[ $domain ] ) || ( _load_textdomain_just_in_time( $domain ) && isset( $l10n[ $domain ] ) ) ) {
    852852                return $l10n[ $domain ];
    853853        }
    854854