[Plugin: Peter's Post Notes] Contribute a patch to make this plugin SSL compatible
-
Currently the js/css are getting from https:// while it’s in https:// protocol. Attached is a simple patch to make it compatible with SSL.
--- peters_post_notes.php.orig 2012-10-05 22:41:52.000000000 -0400 +++ peters_post_notes.php 2012-10-05 22:44:45.000000000 -0400 @@ -692,7 +692,8 @@ wp_enqueue_script( 'sack' ); // Load jQuery as well, although not for Ajax in our case wp_enqueue_script( 'jquery' ); - wp_register_script( 'peters_post_notes', WP_PLUGIN_URL . '/' . dirname(plugin_basename(__FILE__)) . '/peters_post_notes.js', array( 'sack' ) ); + //wp_register_script( 'peters_post_notes', WP_PLUGIN_URL . '/' . dirname(plugin_basename(__FILE__)) . '/peters_post_notes.js', array( 'sack' ) ); + wp_register_script( 'peters_post_notes', plugins_url('/peters_post_notes.js',__FILE__), array( 'sack' ) ); wp_enqueue_script( 'peters_post_notes' ); } @@ -843,4 +844,4 @@ } } // This closes that initial check to make sure someone is actually logged in -?> \ No newline at end of file +?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: Peter's Post Notes] Contribute a patch to make this plugin SSL compatible’ is closed to new replies.