WordPress.org

Support

Support » Plugins and Hacks » Pinterest "Pin It" Button » [Resolved] Mixed content warning and plugin is blocked with HTTPS

[Resolved] Mixed content warning and plugin is blocked with HTTPS

  • Is there a better option than what I did to fix this, so I don’t have to remember to do this manually whenever the plugin is updated?

    I had to edit 2 lines in the code to make this work with https without getting the mixed content warning and no pinning:

    js/pin-it-button-user-selects-image.js:
    e.setAttribute(‘src’,’https://assets.pinterest.com/js/pinmarklet.js?r=’ + Math.random()*99999999);

    and

    $link_href = ‘https://pinterest.com/pin/create/button/?url=’ . rawurlencode( $post_url ) . ‘&media=’ . rawurlencode( $image_url ) . ‘&description=’. rawurlencode( $description );

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Phil Derksen

    @pderksen

    In the next version of the plugin I’ll be doing using a protocol-less URL structure as output by the official Pinterest widget builder, so you shouldn’t get any warnings either way.

    $link_href = ‘//pinterest.com/pin/create/button/?url=’ …

    Also in the next update, the pin-it-button-user-selects-image.js file will go away completely as Pinterest has more recently added “user selects” functionality into their embed code as well.

    Wow. Now that’s impressive customer service! Thank you 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Mixed content warning and plugin is blocked with HTTPS’ is closed to new replies.
Skip to toolbar