WordPress.org

Ready to get started?Download WordPress

Forums

Pinterest "Pin It" Button
[resolved] A description/title decoding bug (3 posts)

  1. joshua.kornreich
    Member
    Posted 3 months ago #

    One of our post titles has a quotation mark in it. WordPress is storing the quotation as ’, which is fine for html output, but not so good to pass to rawurlencode, so, on (my) line 90 of public.php, inside pib_button_base, I wrapped $description a bit more.

    What was:
    '&description=' . rawurlencode( wp_strip_all_tags( $description ) );
    is now:
    '&description=' . rawurlencode( html_entity_decode( wp_strip_all_tags( $description ) ) );

    I request this to be implemented for future versions.

    https://wordpress.org/plugins/pinterest-pin-it-button/

  2. Nick Young
    Member
    Plugin Contributor

    Posted 3 months ago #

    Hi joshua.kornreich,

    I am looking into this now, but I am having trouble seeing what the benefit of this is. Could you maybe elaborate a bit more or show an example of why this is actually beneficial?

    Thanks!
    Nick Young

  3. Phil Derksen
    Member
    Plugin Author

    Posted 2 months ago #

    Closing this out due to no response.

Reply

You must log in to post.

About this Plugin

About this Topic