| @@ -4,8 +4,10 @@ | ||
| 4 | 4 | use Give\DonationForms\DonationQuery; |
| 5 | 5 | |
| 6 | 6 | /** |
| 7 | 7 | * This template is used to display the goal with [give_goal] |
| 8 | + * | |
| 9 | + * @since 4.16.3 Escaped the goal color when rendering the progress bar. | |
| 8 | 10 | */ |
| 9 | 11 | |
| 10 | 12 | /** |
| 11 | 13 | * @var int $form_id form id passed from the give_show_goal_progress() context |
| @@ -256,9 +258,9 @@ | ||
| 256 | 258 | } |
| 257 | 259 | ?> |
| 258 | 260 | <div class="progress-bar"> |
| 259 | 261 | <div class="give-progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="<?php echo esc_attr( $progress_bar_value ); ?>"> |
| 260 | - <span style="<?php echo $style; ?>"></span> | |
| 262 | + <span style="<?php echo esc_attr( $style ); ?>"></span> | |
| 261 | 263 | </div> |
| 262 | 264 | </div> |
| 263 | 265 | <?php endif; ?> |
| 264 | 266 | |