Seriously-Simple-Podcasting icon indicating copy to clipboard operation
Seriously-Simple-Podcasting copied to clipboard

Replace get_the_title() used inside of markup

Open stephen-czetty opened this issue 5 years ago • 7 comments

Replaced get_the_title() with the_title_attribute('echo=0').

This fixes an issue with the wp_typography plugin and titles that contain quotes and other special characters.

stephen-czetty avatar May 19 '20 04:05 stephen-czetty

@stephen-czetty thanks for the PR. As per the contributing guidelines please will you update the PR to be merged into the develop branch.

Thanks

jonathanbossenger avatar May 19 '20 08:05 jonathanbossenger

Oh, oops, I read the guidelines but apparently too quickly! Made the change!

stephen-czetty avatar May 19 '20 08:05 stephen-czetty

@stephen-czetty Could I ask you elaborate on why this fix is necessary, if possible with an example we could use to replicate the problem.

I just want to make sure that the correct fix is being applied to our plugin.

Thanks

jonathanbossenger avatar May 21 '20 11:05 jonathanbossenger

So the specific issue I ran into was an interaction with the wp-typography plugin and a podcast with a double-quote in the title. The typography adds markup to the quote, and it ends up in the title as displayed on the download link.

Screenshot attached. Screen Shot 2020-06-03 at 7 50 39 PM

stephen-czetty avatar Jun 04 '20 00:06 stephen-czetty

@stephen-czetty thanks, could I ask you to add some steps to replicate the issue, so I make sure I can do so on my side. Is there anything specific I need to configure in the wp-typography plugin?

jonathanbossenger avatar Jul 08 '20 08:07 jonathanbossenger

I believe it is enabled by default, but under "Intelligent Character Replacement", make sure Smart Quotes are turned on. Then make sure there is a double-quote in the title of the podcast.

stephen-czetty avatar Jul 12 '20 18:07 stephen-czetty

Thanks, will work on reviewing it this week.

jonathanbossenger avatar Jul 14 '20 10:07 jonathanbossenger