PluginProbe
Polylang / trunk
Polylang vtrunk
3.8.10 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 All 234 releases
← All changes | js/build/user.js +4 -4 3.8.6 → trunk View file →
@@ -50,9 +50,9 @@
50 50 if ( data.flag.height ) {
51 51 img.setAttribute( 'height', data.flag.height );
52 52 }
53 53 label.textContent = ` ${ data.name }`;
54 - label.prepend( img ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.prepend
54 + label.prepend( img );
55 55 } else {
56 56 label.textContent = data.name;
57 57 }
58 58
@@ -59,15 +59,15 @@
59 59 const textarea = originTextarea.cloneNode( true );
60 60 textarea.setAttribute( 'id', `description_${ data.slug }` );
61 61 textarea.setAttribute( 'name', `description_${ data.slug }` );
62 62 textarea.setAttribute( 'dir', data.direction );
63 - textarea.innerHTML = data.description; // phpcs:ignore WordPressVIPMinimum.JS.InnerHTML.Found
63 + textarea.innerHTML = data.description;
64 64
65 - wrapper.append( label, document.createElement( 'br' ), textarea ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.append
65 + wrapper.append( label, document.createElement( 'br' ), textarea );
66 66 rows.push( wrapper );
67 67 } );
68 68
69 - originTextarea.replaceWith( ...rows ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.replaceWith
69 + originTextarea.replaceWith( ...rows );
70 70 },
71 71 };
72 72
73 73 pllDescription.init();