diff --git a/inc/post-tags.php b/inc/post-tags.php index f2e013601..1f74ba05a 100644 --- a/inc/post-tags.php +++ b/inc/post-tags.php @@ -174,7 +174,7 @@ function largo_post_social_links( $echo = true ) { $fb_share = '%2$s'; $output .= sprintf( $fb_share, - esc_attr( get_permalink() ), + esc_url( get_permalink() ), esc_attr( ucfirst( of_get_option( 'fb_verb' ) ) ) ); } @@ -183,8 +183,8 @@ function largo_post_social_links( $echo = true ) { $twitter_share = '%4$s'; $output .= sprintf( $twitter_share, - esc_attr( get_the_title() ), - esc_attr( get_permalink() ), + urlencode( get_the_title() ), + esc_url( get_permalink() ), esc_attr( get_the_author_meta( 'twitter' ) ), esc_attr( __( 'Tweet', 'largo' ) ) );