Skip to content

Commit

Permalink
deploy: aaea95e
Browse files Browse the repository at this point in the history
  • Loading branch information
merkushin committed Jan 14, 2025
1 parent bec7535 commit a343777
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion includes_class-sensei-admin.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ <h1 class="page-title">Source: includes/class-sensei-admin.php</h1>
$html .= 'name="' . esc_attr( $field['id'] ) . '" ';
$html .= 'placeholder="' . esc_attr( $field['placeholder'] ) . '" ';
$html .= disabled( $field['disabled'], true, false );
$html .= '>' . strip_tags( $data ) . '&lt;/textarea>&lt;br/>' . "\n";
$html .= '>' . wp_strip_all_tags( $data ) . '&lt;/textarea>&lt;br/>' . "\n";
break;

case 'checkbox':
Expand Down
2 changes: 1 addition & 1 deletion includes_class-sensei-lesson.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,7 @@ <h1 class="page-title">Source: includes/class-sensei-lesson.php</h1>

$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 .= '&lt;tr class="' . esc_attr( $existing_class ) . '">
&lt;td class="cb">&lt;input type="checkbox" value="' . esc_attr( $question_id ) . '" class="existing-item" />&lt;/td>
Expand Down
4 changes: 2 additions & 2 deletions includes_class-sensei-question.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ <h1 class="page-title">Source: includes/class-sensei-question.php</h1>

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 = '&amp;mdash;';

if ( isset( $question_types[ $question_type ] ) ) {
Expand All @@ -239,7 +239,7 @@ <h1 class="page-title">Source: includes/class-sensei-question.php</h1>
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 = '&amp;mdash;';
}
Expand Down
2 changes: 1 addition & 1 deletion includes_class-sensei-settings.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ <h1 class="page-title">Source: includes/class-sensei-settings.php</h1>

if ( isset( $matches[1] ) ) {
$id = $matches[1];
$page_items[ $id ] = trim( strip_tags( $v ) );
$page_items[ $id ] = trim( wp_strip_all_tags( $v ) );
}
}

Expand Down
4 changes: 2 additions & 2 deletions widgets_class-sensei-category-courses-widget.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ <h1 class="page-title">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;
}
Expand Down
2 changes: 1 addition & 1 deletion widgets_class-sensei-course-categories-widget.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h1 class="page-title">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;
Expand Down

0 comments on commit a343777

Please sign in to comment.