• Hi there,
    I’ve been using your plugin and it’s working great.
    There was a little issue that I fixed and I’m pasting the patch. When using HTTPS in the admin interface colorpicker.js is being included via HTTP and gives an error.

    diff --git a/site/wp-content/plugins/wp-better-attachments/libs/wp-settings-api-bootstrap/class.wp-settings-api-bootstrap.php b/site/wp-content/plugins/wp-better-attachments/libs/wp-settings-api-bootstrap/class.wp-settings-api-bootstrap.php
    index 9c1b13e..f85b93a 100644
    --- a/site/wp-content/plugins/wp-better-attachments/libs/wp-settings-api-bootstrap/class.wp-settings-api-bootstrap.php
    +++ b/site/wp-content/plugins/wp-better-attachments/libs/wp-settings-api-bootstrap/class.wp-settings-api-bootstrap.php
    @@ -139,7 +139,7 @@
     			// enqueue color picker js and css
     			wp_enqueue_script(
     				'artus-field-color-js',
    -				WP_PLUGIN_URL . '/' . dirname( plugin_basename(__FILE__) ) . '/colorpicker.js',
    +				plugins_url( 'colorpicker.js', __FILE__ ),
     				array('jquery', 'farbtastic'),
     				time(),
     				true

    Cheers,
    Guillermo

    https://www.ads-software.com/plugins/wp-better-attachments/

Viewing 1 replies (of 1 total)
  • Plugin Author dholloran

    (@dholloran)

    Thank you for bringing this to my attention I have applied the patch and it will be in the next update.

    Thanks,
    Dan

Viewing 1 replies (of 1 total)
  • The topic ‘[Patch] colorpicker.js loaded as HTTP when using HTTPS’ is closed to new replies.