PluginProbe
Polylang / trunk
Polylang vtrunk
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 | js/build/settings.js +7 -7 3.8.9 → trunk View file →
@@ -58,13 +58,13 @@
58 58 this._setText( wrapper, item.label );
59 59
60 60 // Add the flag from the data attribute in the selected element.
61 61 // `item.element` is the original `<option>` element, the data to prepend comes from a `data-html-flag` HTML attribute, filled by a method from `PLL_Language`.
62 - wrapper.prepend( $( item.element ).data( 'flag-html' ) ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.prepend
62 + wrapper.prepend( $( item.element ).data( 'flag-html' ) );
63 63 wrapper.children( 'img' ).addClass( 'ui-icon' );
64 64
65 65 // `wrapper` and `ul` are safe, see above.
66 - return li.append( wrapper ).appendTo( ul ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.append, WordPressVIPMinimum.JS.HTMLExecutingFunctions.appendTo
66 + return li.append( wrapper ).appendTo( ul );
67 67 };
68 68 // Override selected item since jQuery UI 1.12 which introduces extension point method _renderButtonItem.
69 69 // @see https://api.jqueryui.com/1.12/selectmenu/#method-_renderButtonItem _renderButtonItem documentation.
70 70 var selectmenuRenderButtonItem = function ( selectElement ) {
@@ -73,9 +73,9 @@
73 73 this._addClass( buttonItem, "ui-selectmenu-text" );
74 74
75 75 // Add the flag from the data attribute in the selected element.
76 76 // The data to prepend comes from a `data-html-flag` HTML attribute, filled by a method from `PLL_Language`.
77 - buttonItem.prepend( $( selectElement.element ).data( 'flag-html' ) ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.prepend
77 + buttonItem.prepend( $( selectElement.element ).data( 'flag-html' ) );
78 78 buttonItem.children( 'img' ).addClass( 'ui-icon' );
79 79
80 80 return buttonItem;
81 81 }
@@ -274,9 +274,9 @@
274 274
275 275 switch ( this.what ) {
276 276 case 'license-update':
277 277 // Data comes from `PLL_License::get_form_field()`, where everything is escaped.
278 - $( '#pll-license-' + this.data ).replaceWith( this.supplemental.html ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.replaceWith
278 + $( '#pll-license-' + this.data ).replaceWith( this.supplemental.html );
279 279 break;
280 280 case 'success':
281 281 tr.hide().prev().show(); // close only if there is no error
282 282 case 'error':
@@ -281,9 +281,9 @@
281 281 tr.hide().prev().show(); // close only if there is no error
282 282 case 'error':
283 283 $( '.settings-error' ).remove(); // remove previous messages if any
284 284 // The data comes from `pll_add_notice()`, where message are passed through `wp_kses()`.
285 - $( 'h1' ).after( this.data ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.after
285 + $( 'h1' ).after( this.data );
286 286
287 287 // Make notices dismissible
288 288 // copy paste of common.js from WP 4.2.2
289 289 $( '.notice.is-dismissible' ).each(
@@ -295,9 +295,9 @@
295 295 // Ensure plain text
296 296 $button.find( '.screen-reader-text' ).text( btnText );
297 297
298 298 // Whitelist because of how the button is built. See above
299 - $this.append( $button ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.append
299 + $this.append( $button );
300 300
301 301 $button.on(
302 302 'click.wp-dismiss-notice',
303 303 function ( event ) {
@@ -375,9 +375,9 @@
375 375 ajaxurl,
376 376 data,
377 377 function ( response ) {
378 378 // Data comes from `PLL_License::get_form_field()`, where everything is escaped.
379 - $( '#pll-license-' + response.id ).replaceWith( response.html ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.replaceWith
379 + $( '#pll-license-' + response.id ).replaceWith( response.html );
380 380 }
381 381 );
382 382 }
383 383 );