Support » Plugin: WP ULike » Title in meta tag not properly escaped

  • I’m using this plugin with https://wordpress.org/support/plugin/worth-the-read/ Worth the Read plugin, which adds reading time to the title of the post. When using both of them, a bug in WP ULike occurs, because it doesn’t escape the title (get_the_title()), which results in:

    
    <meta itemprop="name" content="Building Java 6-8 Libraries for JPMS in Gradle<span class=" wtr-time-wrap="" after-title"=""> (<span class="wtr-time-number">6</span> min read)" />
    

    I already fixed it on my webpage by wrapping get_the_title() with strip_tags (in wp-ulike/inc/general-hooks.php, line 201).

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Title in meta tag not properly escaped’ is closed to new replies.