Ticket #6742: 6742.patch

File 6742.patch, 0.5 kB (added by Viper007Bond, 6 months ago)
  • wp-includes/l10n.php

    old new  
    6767function translate($text, $domain = 'default') { 
    6868        global $l10n; 
    6969 
     70        $text = apply_filters('pre_gettext', $text, $domain); 
     71 
    7072        if (isset($l10n[$domain])) 
    71                 return apply_filters('gettext', $l10n[$domain]->translate($text), $text); 
     73                return apply_filters('gettext', $l10n[$domain]->translate($text), $text, $domain); 
    7274        else 
    7375                return $text; 
    7476}