PluginProbe
Polylang / 2.8
Polylang v2.8
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 -15 3.02.8 View file →
@@ -66,10 +66,8 @@
66 66 * Displays the javascript to handle dynamically the change in url modifications
67 67 * as the preferred browser language is not used when the language is set from different domains
68 68 *
69 69 * @since 1.8
70 - *
71 - * @return void
72 70 */
73 71 public function print_js() {
74 72 wp_enqueue_script( 'jquery' );
75 73
@@ -86,21 +84,19 @@
86 84
87 85 ?>
88 86 <script type='text/javascript'>
89 87 //<![CDATA[
90 - jQuery(
91 - function( $ ){
92 - $( "input[name='force_lang']" ).on( 'change', function() {
93 - var value = $( this ).val();
94 - if ( 3 > value ) {
95 - $( "#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 ?>' );
96 - }
97 - else {
98 - $( "#pll-module-browser" ).removeClass( "active" ).addClass( "inactive" ).children( "td" ).children( ".row-actions" ).html( '<?php echo $deactivated; // phpcs:ignore WordPress.Security.EscapeOutput ?>' );
99 - }
100 - } );
101 - }
102 - );
88 + ( function( $ ){
89 + $( "input[name='force_lang']" ).change( function() {
90 + var value = $( this ).val();
91 + if ( 3 > value ) {
92 + $( "#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 ?>' );
93 + }
94 + else {
95 + $( "#pll-module-browser" ).removeClass( "active" ).addClass( "inactive" ).children( "td" ).children( ".row-actions" ).html( '<?php echo $deactivated; // phpcs:ignore WordPress.Security.EscapeOutput ?>' );
96 + }
97 + } );
98 + } )( jQuery );
103 99 // ]]>
104 100 </script>
105 101 <?php
106 102 }