Small modifications for Polylang 1.2.x