Support » Plugin: WP-PostRatings » Posts are broken when post excerpt contains HTML tags

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Posts are broken when post excerpt contains HTML tags’ is closed to new replies.