Version 2.0 imminent
git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@2407529 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
cf553462a6
commit
6cef45746d
24 changed files with 1298 additions and 1542 deletions
|
@ -31,7 +31,12 @@ class MCI_Footnotes_Language {
|
|||
*/
|
||||
public static function loadTextDomain() {
|
||||
// language file with localization exists
|
||||
if (self::load(apply_filters('plugin_locale', get_locale()))) {
|
||||
if (self::load(apply_filters('plugin_locale', get_locale(), ''))) {
|
||||
// added 3rd (empty) parameter as a PHP-related bug fix thanks to MatKus (@matkus) in
|
||||
// <https://wordpress.org/support/topic/error-missing-parameter-if-using-php-7-1-or-later/>
|
||||
// <https://www.php.net/manual/en/migration71.incompatible.php>
|
||||
// "Fatal error: Uncaught ArgumentCountError: Too few arguments […]"
|
||||
// 2020-10-26T1609+0100
|
||||
return;
|
||||
}
|
||||
// fallback to english
|
||||
|
@ -50,4 +55,4 @@ class MCI_Footnotes_Language {
|
|||
return load_textdomain(MCI_Footnotes_Config::C_STR_PLUGIN_NAME,
|
||||
dirname(__FILE__) . "/../languages/" . $p_str_LanguageCode . '.mo');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue