From 21be6bc3dcb9f2ca9ea299b31268779edfdde1c7 Mon Sep 17 00:00:00 2001 From: joedolson Date: Mon, 6 Jan 2025 00:34:10 +0000 Subject: [PATCH] deploy: f2318426bea52428993208c9917a59a69ff7ec4f --- my-calendar-generator.php.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/my-calendar-generator.php.html b/my-calendar-generator.php.html index 62fbdc8c..a32f6af9 100644 --- a/my-calendar-generator.php.html +++ b/my-calendar-generator.php.html @@ -135,7 +135,7 @@ */ function mc_generator( $type, $data = array() ) { ?> - <form action="<?php echo esc_url( admin_url( 'admin.php?page=my-calendar-shortcodes' ) ) . '#mc_' . $type; ?>" method="POST" id="my-calendar-generate"> + <form action="<?php echo esc_url( admin_url( 'admin.php?page=my-calendar-shortcodes' ) ) . '#mc_' . esc_attr( $type ); ?>" method="POST" id="my-calendar-generate"> <?php mc_calendar_generator_fields( $data, $type ); ?> <p> <input type="submit" class="button-primary" name="generator" value="<?php esc_html_e( 'Generate Shortcode', 'my-calendar' ); ?>"/> @@ -179,7 +179,7 @@ * * @return {string} */ - echo apply_filters( 'mc_generator_tabs', '' ); + echo wp_kses( apply_filters( 'mc_generator_tabs', '' ), mc_kses_elements() ); ?> </div> <div class='wptab mc_main' id='mc_main' aria-live='assertive' aria-labelledby='tab_mc_main' role="tabpanel"> @@ -202,7 +202,7 @@ * * @return {string} */ - echo apply_filters( 'mc_generator_tab_content', '', $data ); + echo wp_kses( apply_filters( 'mc_generator_tab_content', '', $data ), mc_kses_elements() ); ?> </div> </div>