# This patch file uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
# Patch for Ticket #959.
# Changes define for BP_PLUGIN_URL to use plugin_url()
# which obtains the correct scheme (http or https).
#
# Ticket reported & code written by R-A-Y.
# Patch created by Jason Giedymin - AcronymLabs.com
--- bp-core.php
+++ bp-core.php
@@ -3,9 +3,12 @@
 /* Define the current version number for checking if DB tables are up to date. */
 define( 'BP_CORE_DB_VERSION', '1700' );
 
-/* Define the path and url of the BuddyPress plugins directory */
+/* Define the path and url of the BuddyPress plugins directory.
+ * It is important to use plugins_url() core function to obtain
+ * the correct scheme used (http or https).
+ */
 define( 'BP_PLUGIN_DIR', WP_PLUGIN_DIR . '/buddypress' );
-define( 'BP_PLUGIN_URL', WP_PLUGIN_URL . '/buddypress' );
\ No newline at end of file
+define( 'BP_PLUGIN_URL', plugins_url($path = '/buddypress') );
\ No newline at end of file
 
 /* Place your custom code (actions/filters) in a file called /plugins/bp-custom.php and it will be loaded before anything else. */
 if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) )
