Skip to content

Commit

Permalink
deploy: f231842
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jan 6, 2025
1 parent 5e622ba commit 21be6bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions my-calendar-generator.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -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' ); ?>"/>
Expand Down Expand Up @@ -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">
Expand All @@ -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>
Expand Down

0 comments on commit 21be6bc

Please sign in to comment.