WordPress Popular Posts
[resolved] Widget Title Error - After title, a non-desired character (2 posts)

  1. Begood
    Posted 5 years ago #

    Hi !

    Thanks for your work.

    After the title there is an extra character.
    I think it's in wordpress-popular-posts.php line 132:
    You have:

    echo htmlspecialchars_decode($instance['markup']['title-start'], ENT_QUOTES) . $instance['title'], ENT_QUOTES . htmlspecialchars_decode($instance['markup']['title-end'], ENT_QUOTES);

    In place of:

    echo htmlspecialchars_decode($instance['markup']['title-start'], ENT_QUOTES) . htmlspecialchars_decode($instance['title'], ENT_QUOTES) . htmlspecialchars_decode($instance['markup']['title-end'], ENT_QUOTES);

    Looks like it's missing one htmlspecialchars for the title, so the value of ENT_QUOTES is displaying

  2. Hector Cabrera
    Plugin Author

    Posted 4 years ago #

    Thanks for reporting this, Begood.

    I'll be sure to include this fix on a future release of my plugin (v.2.1.6 maybe).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic