Skip to content

Commit

Permalink
add URL to social icons
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed Oct 9, 2012
1 parent 8115539 commit 83f73dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/widgets/widget-social.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function widget( $args, $instance ) {
$socials = $this->social_options();
foreach( $socials as $key => $label ) {
if( !empty( $instance[$key] ) )
echo '<a class="social-icon ' . $key . '">' . $label . '</a> ';
echo '<a class="social-icon ' . $key . '" href="' . esc_url( $instance[$key] ) . '">' . $label . '</a> ';
}
echo '</p>';

Expand Down

0 comments on commit 83f73dc

Please sign in to comment.