[Patch] colorpicker.js loaded as HTTP when using HTTPS
-
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
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Patch] colorpicker.js loaded as HTTP when using HTTPS’ is closed to new replies.