PluginProbe
Polylang / 2.7.3
Polylang v2.7.3
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 | settings/settings-browser.php +11 -22 2.92.7.3 View file →
@@ -1,8 +1,5 @@
1 1 <?php
2 -/**
3 - * @package Polylang
4 - */
5 2
6 3 /**
7 4 * Settings class for browser language preference detection
8 5 *
@@ -8,14 +5,8 @@
8 5 *
9 6 * @since 1.8
10 7 */
11 8 class PLL_Settings_Browser extends PLL_Settings_Module {
12 - /**
13 - * Stores the display order priority.
14 - *
15 - * @var int
16 - */
17 - public $priority = 20;
18 9
19 10 /**
20 11 * Constructor
21 12 *
@@ -84,21 +75,19 @@
84 75
85 76 ?>
86 77 <script type='text/javascript'>
87 78 //<![CDATA[
88 - jQuery(
89 - function( $ ){
90 - $( "input[name='force_lang']" ).on( 'change', function() {
91 - var value = $( this ).val();
92 - if ( 3 > value ) {
93 - $( "#pll-module-browser" ).<?php echo $func; // phpcs:ignore WordPress.Security.EscapeOutput ?>.children( "td" ).children( ".row-actions" ).html( '<?php echo $link; // phpcs:ignore WordPress.Security.EscapeOutput ?>' );
94 - }
95 - else {
96 - $( "#pll-module-browser" ).removeClass( "active" ).addClass( "inactive" ).children( "td" ).children( ".row-actions" ).html( '<?php echo $deactivated; // phpcs:ignore WordPress.Security.EscapeOutput ?>' );
97 - }
98 - } );
99 - }
100 - );
79 + ( function( $ ){
80 + $( "input[name='force_lang']" ).change( function() {
81 + var value = $( this ).val();
82 + if ( 3 > value ) {
83 + $( "#pll-module-browser" ).<?php echo $func; // phpcs:ignore WordPress.Security.EscapeOutput ?>.children( "td" ).children( ".row-actions" ).html( '<?php echo $link; // phpcs:ignore WordPress.Security.EscapeOutput ?>' );
84 + }
85 + else {
86 + $( "#pll-module-browser" ).removeClass( "active" ).addClass( "inactive" ).children( "td" ).children( ".row-actions" ).html( '<?php echo $deactivated; // phpcs:ignore WordPress.Security.EscapeOutput ?>' );
87 + }
88 + } );
89 + } )( jQuery );
101 90 // ]]>
102 91 </script>
103 92 <?php
104 93 }