Skip to content

Commit

Permalink
Couple missed escapings
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jan 5, 2025
1 parent b48e938 commit 511b1c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/includes/widgets/class-my-calendar-upcoming-widget.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function form( $instance ) {
<textarea class="widefat" rows="6" cols="20" id="<?php echo esc_attr( $this->get_field_id( 'my_calendar_upcoming_template' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'my_calendar_upcoming_template' ) ); ?>"><?php echo esc_textarea( $template ); ?></textarea>
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'mc_link' ) ); ?>"><?php _e( 'Widget title links to:', 'my-calendar' ); ?></label><br/>
<label for="<?php echo esc_attr( $this->get_field_id( 'mc_link' ) ); ?>"><?php esc_html_e( 'Widget title links to:', 'my-calendar' ); ?></label><br/>
<input class="widefat" type="text" id="<?php echo esc_attr( $this->get_field_id( 'mc_link' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'mc_link' ) ); ?>" value="<?php echo esc_url( $link ); ?>"/>
</p>
<p>
Expand Down Expand Up @@ -225,7 +225,7 @@ public function form( $instance ) {
<label for="<?php echo esc_attr( $this->get_field_id( 'my_calendar_upcoming_after' ) ); ?>">
<?php
// Translators: "days" or "events".
printf( esc_html__( '%s into the future', 'my-calendar' ), ucfirst( $type ) );
printf( esc_html__( '%s into the future', 'my-calendar' ), esc_html( ucfirst( $type ) ) );
?>
</label>
<input type="text" id="<?php echo esc_attr( $this->get_field_id( 'my_calendar_upcoming_after' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'my_calendar_upcoming_after' ) ); ?>" value="<?php echo esc_attr( $after ); ?>" size="1" maxlength="3" />
Expand All @@ -234,7 +234,7 @@ public function form( $instance ) {
<label for="<?php echo esc_attr( $this->get_field_id( 'my_calendar_upcoming_before' ) ); ?>">
<?php
// Translators: "days" or "events".
printf( esc_html__( '%s from the past', 'my-calendar' ), ucfirst( $type ) );
printf( esc_html__( '%s from the past', 'my-calendar' ), esc_html( ucfirst( $type ) ) );
?>
</label>
<input type="text" id="<?php echo esc_attr( $this->get_field_id( 'my_calendar_upcoming_before' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'my_calendar_upcoming_before' ) ); ?>" value="<?php echo esc_attr( $before ); ?>" size="1" maxlength="3" />
Expand All @@ -253,7 +253,7 @@ public function form( $instance ) {
}
?>
<fieldset>
<legend><?php _e( 'Categories to display:', 'my-calendar' ); ?></legend>
<legend><?php esc_html_e( 'Categories to display:', 'my-calendar' ); ?></legend>
<ul style="padding:0;margin:0;list-style-type:none;display:flex;flex-wrap:wrap;gap:12px;">
<li>
<input type="checkbox" value="all" <?php checked( true, $all_checked ); ?> name="<?php echo esc_attr( $this->get_field_name( 'my_calendar_upcoming_category' ) ) . '[]'; ?>" id="<?php echo esc_attr( $this->get_field_id( 'my_calendar_upcoming_category' ) ); ?>"> <label for="<?php echo esc_attr( $this->get_field_id( 'my_calendar_upcoming_category' ) ); ?>"><?php esc_html_e( 'All', 'my-calendar' ); ?></label>
Expand Down

0 comments on commit 511b1c3

Please sign in to comment.