Skip to content

Commit

Permalink
use esc_url() for sharing link, fixes #130
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed Jan 17, 2024
1 parent 6ee4266 commit 4a8d0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-shared-counts-front.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public function link( $types = 'facebook', $id = false, $echo = true, $style = '
} else {
$elements['wrap_open'] = sprintf(
'<a href="%s"%s%s%s class="%s"%s>',
esc_attr( $link['link'] ),
esc_url( $link['link'] ),
$attr_title,
$target,
$rel,
Expand Down

0 comments on commit 4a8d0fb

Please sign in to comment.