Title: Mixed content warning and plugin is blocked with HTTPS
Last modified: August 21, 2016

---

# Mixed content warning and plugin is blocked with HTTPS

 *  Resolved [danielj@dtdo.net](https://wordpress.org/support/users/danieljdtdonet/)
 * (@danieljdtdonet)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/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=&#8217](https://assets.pinterest.com/js/pinmarklet.js?r=&#8217);
   + Math.random()*99999999);
 * and
 *  $link_href = ‘[https://pinterest.com/pin/create/button/?url=&#8217](https://pinterest.com/pin/create/button/?url=&#8217);.
   rawurlencode( $post_url ) . ‘&media=’ . rawurlencode( $image_url ) . ‘&description
   =’. rawurlencode( $description );
 * [http://wordpress.org/plugins/pinterest-pin-it-button/](http://wordpress.org/plugins/pinterest-pin-it-button/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Phil Derksen](https://wordpress.org/support/users/pderksen/)
 * (@pderksen)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/mixed-content-warning-and-plugin-is-blocked-with-https/#post-4081987)
 * 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.
 *  Thread Starter [danielj@dtdo.net](https://wordpress.org/support/users/danieljdtdonet/)
 * (@danieljdtdonet)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/mixed-content-warning-and-plugin-is-blocked-with-https/#post-4081988)
 * Wow. Now that’s impressive customer service! Thank you 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Mixed content warning and plugin is blocked with HTTPS’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pinterest-pin-it-button_f5f5f5.svg)
 * [Pinterest "Pin It" Button](https://wordpress.org/plugins/pinterest-pin-it-button/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pinterest-pin-it-button/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pinterest-pin-it-button/)
 * [Active Topics](https://wordpress.org/support/plugin/pinterest-pin-it-button/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pinterest-pin-it-button/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pinterest-pin-it-button/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [danielj@dtdo.net](https://wordpress.org/support/users/danieljdtdonet/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/mixed-content-warning-and-plugin-is-blocked-with-https/#post-4081988)
 * Status: resolved