Skip to content

Commit

Permalink
Contact Info Widget: Add '%s' to the confit-hours div
Browse files Browse the repository at this point in the history
This fixes a bug that prevents the hours from being displayed.
  • Loading branch information
kbrown9 committed Nov 7, 2019
1 parent c9d1b64 commit 015cc02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/widgets/contact-info.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public function widget( $args, $instance ) {

if ( '' !== $instance['hours'] ) {
printf(
'<div class="confit-hours" itemprop="openingHours"></div>',
'<div class="confit-hours" itemprop="openingHours">%s</div>',
str_replace( "\n", '<br/>', esc_html( $instance['hours'] ) ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
);
}
Expand Down

0 comments on commit 015cc02

Please sign in to comment.