| @@ -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(); |