WordPress.org

Support

Support » Plugins and Hacks » WP-PostRatings » [Resolved] Page is broken when post excerpt contain any HTML tag

[Resolved] Page is broken when post excerpt contain any HTML tag

  • I wrote this same problem few months ago. I also gave a solution. Plugin author updated this issue in the latest version 1.74. But he use wrong function . it is not working. I have my broken page yet.

    Currently it uses following codes in wp-postratings.php
    $post_meta = ‘<meta itemprop=”name” content=”‘.esc_attr($post_title).'”><meta itemprop=”description” content=”‘.esc_attr($post_excerpt).'”>

    ——BUT IT SHOULD BE FOLLOWING—— use wp_kses() instead of esc_attr()—-

    $post_meta = ‘<meta itemprop=”name” content=”‘.esc_attr($post_title).'”><meta itemprop=”description” content=”‘.wp_kses($post_excerpt, array()).'”>

    PLEASE UPDATE THIS PLUGIN

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

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Page is broken when post excerpt contain any HTML tag’ is closed to new replies.
Skip to toolbar