| @@ -65,12 +65,9 @@ | ||
| 65 | 65 | $.each( |
| 66 | 66 | res.responses, |
| 67 | 67 | function() { |
| 68 | 68 | if ( 'row' == this.what ) { |
| 69 | - // data is built with a call to WP_Terms_List_Table::single_row method | |
| 70 | - // which uses internally other WordPress methods which escape correctly values. | |
| 71 | - // For Polylang language columns the HTML code is correctly escaped in PLL_Admin_Filters_Columns::term_column method. | |
| 72 | - $( "#tag-" + this.supplemental.term_id ).replaceWith( this.data ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.replaceWith | |
| 69 | + $( "#tag-" + this.supplemental.term_id ).replaceWith( this.data ); | |
| 73 | 70 | } |
| 74 | 71 | } |
| 75 | 72 | ); |
| 76 | 73 | } |
| @@ -186,14 +183,12 @@ | ||
| 186 | 183 | $( "#term-translations" ).html( this.data ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.html |
| 187 | 184 | init_translations(); |
| 188 | 185 | break; |
| 189 | 186 | case 'parent': // parent dropdown list for hierarchical taxonomies |
| 190 | - // data correctly escaped in PLL_Admin_Filters_Term::term_lang_choice method which uses wp_dropdown_categories function. | |
| 191 | - $( '#parent' ).replaceWith( this.data ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.replaceWith | |
| 187 | + $( '#parent' ).replaceWith( this.data ); | |
| 192 | 188 | break; |
| 193 | 189 | case 'tag_cloud': // popular items |
| 194 | - // data correctly escaped in PLL_Admin_Filters_Term::term_lang_choice method which uses wp_tag_cloud and wp_generate_tag_cloud functions. | |
| 195 | - $( '.tagcloud' ).replaceWith( this.data ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.replaceWith | |
| 190 | + $( '.tagcloud' ).replaceWith( this.data ); | |
| 196 | 191 | break; |
| 197 | 192 | case 'flag': // flag in front of the select dropdown |
| 198 | 193 | // Data is built and come from server side and is well escaped when necessary |
| 199 | 194 | $( '.pll-select-flag' ).html( this.data ); // phpcs:ignore WordPressVIPMinimum.JS.HTMLExecutingFunctions.html |