Little Bug in core.php
-
Hey, i guess i find a little bug in includes/core.php
I called set_post_language in an own plugin an always got an error, that $lang is not set in core.php on 228.
i saw that you check if lang is false and if yes return the preferred language.
So, it’s not pain to changefunction pll_get_current_language($lang) { return !$lang ? $this->get_preferred_language() : $lang; }
to
function pll_get_current_language($lang = false) { return !$lang ? $this->get_preferred_language() : $lang; }
Cheers!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Little Bug in core.php’ is closed to new replies.