File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ private function _fetchSeriesFromEditableTable() {
429
429
foreach ( $ headers as $ header ) {
430
430
if ( ! empty ( $ types [ $ header ] ) ) {
431
431
$ this ->_series [] = array (
432
- 'label ' => esc_html ( wp_strip_all_tags ( $ header ) ),
432
+ 'label ' => sanitize_text_field ( wp_strip_all_tags ( $ header ) ),
433
433
'type ' => $ types [ $ header ],
434
434
);
435
435
}
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ private function _fetchSeries( &$handle ) {
97
97
$ labels [ $ i ] = $ this ->toUTF8 ( $ labels [ $ i ] );
98
98
99
99
$ this ->_series [] = array (
100
- 'label ' => esc_html ( wp_strip_all_tags ( $ labels [ $ i ] ) ),
100
+ 'label ' => sanitize_text_field ( wp_strip_all_tags ( $ labels [ $ i ] ) ),
101
101
'type ' => isset ( $ types [ $ i ] ) ? $ types [ $ i ] : $ default_type ,
102
102
);
103
103
}
You can’t perform that action at this time.
0 commit comments