WordPress.org

Ready to get started?Download WordPress

Forums

Slick Social Share Buttons
[resolved] Post title in meta property="og:title" (1 post)

  1. Ahaenor
    Member
    Posted 1 year ago #

    Hello! Recenly i've encountered the following bug.

    SSSB uses get_title() function when displaying meta property="og:title" on some site pages.

    But this function not always returns site title as a pure string. It allows other plugins to modify the title with filter. And some of them do it. For ex, one of my plugins added HTML markup to the title.

    In this case, meta tag looked like this:

    <meta property="og:title" content="<span id="someid">Site title<span>"/>

    And it breaked the page markup.

    So i'd think that get_title() isn't fit, while get_bloginfo('name') would do the trick.

    http://wordpress.org/extend/plugins/slick-social-share-buttons/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.