Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Commit e7581d5

Browse files
author
Michael Sisk
committed
Correct HTML entities in post title when tweeting.
1 parent 443c929 commit e7581d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webcomic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ public function tweet_webcomic( $new, $old, $post ) {
10501050
'%url' => $link ? $link : get_permalink( $post->ID ),
10511051
'%date' => get_the_time( get_option( 'date_format' ), $post ),
10521052
'%time' => get_the_time( get_option( 'time_format' ), $post ),
1053-
'%title' => get_the_title( $post->ID ),
1053+
'%title' => html_entity_decode( get_the_title( $post->ID ), ENT_QUOTES, "UTF-8" ),
10541054
'%author' => get_the_author_meta( 'display_name', $post->post_author ),
10551055
'%site-url' => home_url(),
10561056
'%permalink' => get_permalink( $post->ID ),

0 commit comments

Comments
 (0)