WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
Posts are broken when post excerpt contains HTML tags (3 posts)

  1. oneTarek
    Member
    Posted 10 months ago #

    This plugin has a bug.
    When a post excerpt contains HTML codes or any quotes then pages are broken. Its because this pluign does not filter HTML tags from post excerpt.
    I edited the plugin file wp-postratings.php
    Current Code:
    <meta itemprop="description" content="'$post_excerpt.'">

    Changed to :

    <meta itemprop="description" content="'.wp_kses($post_excerpt, array()).'">

    http://wordpress.org/extend/plugins/wp-postratings/

  2. azazure
    Member
    Posted 9 months ago #

    I had the same issue but your code correction fixed the problem. Thanks for sharing.

  3. oneTarek
    Member
    Posted 9 months ago #

    This problem has been fixed from the new version 1.70

Reply

You must log in to post.

About this Plugin

About this Topic

Tags