Codeinwp / tweet-old-post

Plugin to tweet about your old posts to get more hits for them and keep them alive.
GNU General Public License v2.0
12 stars 16 forks source link

fix: decode title entities #933

Closed Soare-Robert-Daniel closed 6 months ago

Soare-Robert-Daniel commented 6 months ago

Summary

Sometimes the title might contain encoded entities like A Skeptic's "Ghost" Story – Half-Hearted Fanatic which they should be shared like A Skeptic's "Ghost" Story – Half-Hearted Fanatic.

After pulling the title, I added a decoding function.

post_title before: A Skeptic’s "Ghost" Story – Half-Hearted Fanatic
post_title after: A Skeptic’s "Ghost" Story – Half-Hearted Fanatic

Testing

[!NOTE] To ensure you add the encoded entities, create a post using the Classic Plugin. With Gutenberg, it will make the decode automatically.

image

  1. Create a Post
  2. Add the following string as a title A Skeptic's "Ghost" Story – Half-Hearted Fanatic
  3. Share it with a social account.
  4. The title should be displayed correctly.
github-actions[bot] commented 6 months ago

Plugin build for cbfd530c8d96cc546e1b91222263561b42d1de4c is ready :bellhop_bell:!

irinelenache commented 6 months ago

@Soare-Robert-Daniel Tested and the issue is fixed now, thank you ✔️

pirate-bot commented 5 months ago

:tada: This PR is included in version 9.0.27 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: