PluginProbe
Polylang / 2.5.2
Polylang v2.5.2
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | modules/plugins/cache-compat.php +2 -2 2.72.5.2 View file →
@@ -30,9 +30,9 @@
30 30 *
31 31 * @since 2.3
32 32 */
33 33 public function add_cookie_script() {
34 - $domain = ( 2 == PLL()->options['force_lang'] ) ? wp_parse_url( PLL()->links_model->home, PHP_URL_HOST ) : COOKIE_DOMAIN;
34 + $domain = ( 2 == PLL()->options['force_lang'] ) ? parse_url( PLL()->links_model->home, PHP_URL_HOST ) : COOKIE_DOMAIN;
35 35 $js = sprintf(
36 36 '(function() {
37 37 var expirationDate = new Date();
38 38 expirationDate.setTime( expirationDate.getTime() + %d * 1000 );
@@ -43,9 +43,9 @@
43 43 esc_js( pll_current_language() ),
44 44 esc_js( COOKIEPATH ),
45 45 $domain ? '; domain=' . esc_js( $domain ) : ''
46 46 );
47 - echo '<script type="text/javascript">' . $js . '</script>'; // phpcs:ignore WordPress.Security.EscapeOutput
47 + echo '<script type="text/javascript">' . $js . '</script>';
48 48 }
49 49
50 50 /**
51 51 * Informs cache plugins not to cache the home in the default language