From a343777bd38eec6a007ee93219e48f1062c4cf35 Mon Sep 17 00:00:00 2001 From: merkushin Date: Tue, 14 Jan 2025 14:05:57 +0000 Subject: [PATCH] deploy: aaea95e5622b9619cd9116660ab855b9163e3574 --- includes_class-sensei-admin.php.html | 2 +- includes_class-sensei-lesson.php.html | 2 +- includes_class-sensei-question.php.html | 4 ++-- includes_class-sensei-settings.php.html | 2 +- widgets_class-sensei-category-courses-widget.php.html | 4 ++-- widgets_class-sensei-course-categories-widget.php.html | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/includes_class-sensei-admin.php.html b/includes_class-sensei-admin.php.html index 40b1fa095e..f83780c432 100644 --- a/includes_class-sensei-admin.php.html +++ b/includes_class-sensei-admin.php.html @@ -972,7 +972,7 @@

Source: includes/class-sensei-admin.php

$html .= 'name="' . esc_attr( $field['id'] ) . '" '; $html .= 'placeholder="' . esc_attr( $field['placeholder'] ) . '" '; $html .= disabled( $field['disabled'], true, false ); - $html .= '>' . strip_tags( $data ) . '</textarea><br/>' . "\n"; + $html .= '>' . wp_strip_all_tags( $data ) . '</textarea><br/>' . "\n"; break; case 'checkbox': diff --git a/includes_class-sensei-lesson.php.html b/includes_class-sensei-lesson.php.html index e532393052..cbad36fe2d 100644 --- a/includes_class-sensei-lesson.php.html +++ b/includes_class-sensei-lesson.php.html @@ -2049,7 +2049,7 @@

Source: includes/class-sensei-lesson.php

$question_type = Sensei()->question->get_question_type( $question_id ); - $question_cat_list = strip_tags( get_the_term_list( $question_id, 'question-category', '', ', ', '' ) ); + $question_cat_list = wp_strip_all_tags( get_the_term_list( $question_id, 'question-category', '', ', ', '' ) ); $html .= '<tr class="' . esc_attr( $existing_class ) . '"> <td class="cb"><input type="checkbox" value="' . esc_attr( $question_id ) . '" class="existing-item" /></td> diff --git a/includes_class-sensei-question.php.html b/includes_class-sensei-question.php.html index 1de9c97e8f..391562ac1b 100644 --- a/includes_class-sensei-question.php.html +++ b/includes_class-sensei-question.php.html @@ -228,7 +228,7 @@

Source: includes/class-sensei-question.php

case 'question-type': $question_types = $this->question_types(); - $question_type = strip_tags( get_the_term_list( $id, 'question-type', '', ', ', '' ) ); + $question_type = wp_strip_all_tags( get_the_term_list( $id, 'question-type', '', ', ', '' ) ); $output = '&mdash;'; if ( isset( $question_types[ $question_type ] ) ) { @@ -239,7 +239,7 @@

Source: includes/class-sensei-question.php

break; case 'question-category': - $output = strip_tags( get_the_term_list( $id, 'question-category', '', ', ', '' ) ); + $output = wp_strip_all_tags( get_the_term_list( $id, 'question-category', '', ', ', '' ) ); if ( ! $output ) { $output = '&mdash;'; } diff --git a/includes_class-sensei-settings.php.html b/includes_class-sensei-settings.php.html index 4c0fd54a98..c12736eeca 100644 --- a/includes_class-sensei-settings.php.html +++ b/includes_class-sensei-settings.php.html @@ -1046,7 +1046,7 @@

Source: includes/class-sensei-settings.php

if ( isset( $matches[1] ) ) { $id = $matches[1]; - $page_items[ $id ] = trim( strip_tags( $v ) ); + $page_items[ $id ] = trim( wp_strip_all_tags( $v ) ); } } diff --git a/widgets_class-sensei-category-courses-widget.php.html b/widgets_class-sensei-category-courses-widget.php.html index 1de3008ac8..8125c4131d 100644 --- a/widgets_class-sensei-category-courses-widget.php.html +++ b/widgets_class-sensei-category-courses-widget.php.html @@ -136,13 +136,13 @@

Source: widgets/class-sensei-category-courses-widget.php< $instance = $old_instance; /* Strip tags for title and name to remove HTML (important for text inputs). */ - $instance['title'] = strip_tags( $new_instance['title'] ); + $instance['title'] = wp_strip_all_tags( $new_instance['title'] ); /* The select box is returning a text value, so we escape it. */ $instance['course_category'] = esc_attr( $new_instance['course_category'] ); /* Strip tags for limit to remove HTML (important for text inputs). */ - $instance['limit'] = strip_tags( $new_instance['limit'] ); + $instance['limit'] = wp_strip_all_tags( $new_instance['limit'] ); return $instance; } diff --git a/widgets_class-sensei-course-categories-widget.php.html b/widgets_class-sensei-course-categories-widget.php.html index bb78e1d40a..f013d22a3c 100644 --- a/widgets_class-sensei-course-categories-widget.php.html +++ b/widgets_class-sensei-course-categories-widget.php.html @@ -133,7 +133,7 @@

Source: widgets/class-sensei-course-categories-widget.php $instance = $old_instance; /* Strip tags for title and name to remove HTML (important for text inputs). */ - $instance['title'] = strip_tags( $new_instance['title'] ?? '' ); + $instance['title'] = wp_strip_all_tags( $new_instance['title'] ?? '' ); /* The select box is returning a text value, so we escape it. */ $instance['limit'] = (int) $new_instance['limit'] ?? 3;