Skip to content

Commit

Permalink
Merge pull request #1147 from INN/1134-html-entities-tweet
Browse files Browse the repository at this point in the history
Use html_entity_decode on twitter title in share text
  • Loading branch information
aschweigert committed Feb 25, 2016
2 parents 4def6f7 + 91fcf50 commit 110307f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/post-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ function largo_post_social_links( $echo = true ) {

$output .= sprintf(
$twitter_share,
// Yes, rawurlencode. Otherwise, the link will break.
rawurlencode( get_the_title() ),
// Yes, rawurlencode. Otherwise, the link will break. Use html_entity_decode to handle wordpress saving smart quotes as Ӓ entities.
rawurlencode( html_entity_decode( get_the_title(), ENT_QUOTES, "UTF-8" ) ),
rawurlencode( get_permalink() ),
$via,
rawurlencode( __( 'Tweet', 'largo' ) )
Expand Down

0 comments on commit 110307f

Please sign in to comment.