Skip to content

Commit

Permalink
Describe the method
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Jan 20, 2025
1 parent 8a890d0 commit 675b17c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/class-cf7-extras.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ public function wpcf7_add_meta_boxes( $post_id ) {
);
}

/**
* Sanitize the field label with a few allowed HTML tags.
*
* @param string $label Field label markup.
*
* @return string
*/
private function esc_field_label( $label ) {
return wp_kses(
$label,
Expand Down Expand Up @@ -739,7 +746,7 @@ public function maybe_reset_autop( $form ) {
/**
* Maybe enable WordPress shortcodes in the form content.
*
* @param string $form Current CF7 form content
* @param string $form Current CF7 form content.
*
* @return string
*/
Expand Down

0 comments on commit 675b17c

Please sign in to comment.