From 675b17caf5b4dfebead4182015ed63e629d84369 Mon Sep 17 00:00:00 2001 From: Kaspars Dambis Date: Mon, 20 Jan 2025 18:05:01 +0200 Subject: [PATCH] Describe the method --- src/class-cf7-extras.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/class-cf7-extras.php b/src/class-cf7-extras.php index c1211df..3a214bd 100644 --- a/src/class-cf7-extras.php +++ b/src/class-cf7-extras.php @@ -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, @@ -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 */