WordPress.org

Forums

Peter's Post Notes
[resolved] Contribute a patch to make this plugin SSL compatible (2 posts)

  1. llch
    Member
    Posted 2 years ago #

    Currently the js/css are getting from http:// 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
    +?>

    http://wordpress.org/extend/plugins/peters-post-notes/

  2. Peter
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for sharing! I've added this to version 1.4.0 of the plugin now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Peter's Post Notes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.