Permalink
Browse files

Correct HTML entities in post title when tweeting.

  • Loading branch information...
1 parent 443c929 commit e7581d5a8242b355e18140b02cd6d86d3b46ab48 Michael Sisk committed Feb 17, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 webcomic.php
View
@@ -1050,7 +1050,7 @@ public function tweet_webcomic( $new, $old, $post ) {
'%url' => $link ? $link : get_permalink( $post->ID ),
'%date' => get_the_time( get_option( 'date_format' ), $post ),
'%time' => get_the_time( get_option( 'time_format' ), $post ),
- '%title' => get_the_title( $post->ID ),
+ '%title' => html_entity_decode( get_the_title( $post->ID ), ENT_QUOTES, "UTF-8" ),
'%author' => get_the_author_meta( 'display_name', $post->post_author ),
'%site-url' => home_url(),
'%permalink' => get_permalink( $post->ID ),

0 comments on commit e7581d5

Please sign in to comment.