[buddypress-trac] [BuddyPress] #959: BP_PLUGIN_URL - "define" enhancement for SSL-enabled BP sites

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Aug 31 19:17:36 UTC 2009


#959: BP_PLUGIN_URL - "define" enhancement for SSL-enabled BP sites
------------------------+---------------------------------------------------
Reporter:  r-a-y        |       Owner:     
    Type:  enhancement  |      Status:  new
Priority:  minor        |   Milestone:  1.1
Keywords:               |  
------------------------+---------------------------------------------------
 I've just started implementing SSL on a WPMU site I'm working on.

 The default BP_PLUGIN_URL define uses WP_PLUGIN_URL which doesn't
 correctly redirect SSL requests over to their HTTPS equivalents.

 In bp-core.php, instead of WP_PLUGIN_URL:

 {{{
 define( 'BP_PLUGIN_URL', WP_PLUGIN_URL . '/buddypress' );
 }}}

 I recommend using plugins_url() instead:

 {{{
 define( 'BP_PLUGIN_URL', plugins_url($path = '/buddypress') );
 }}}

 ---

 plugins_url() correctly switches all BP wp_enqueue_scripts/styles over to
 HTTPS.

 More info here:
 http://wpengineer.com/wordpress-plugin-path/

-- 
Ticket URL: <http://trac.buddypress.org/ticket/959>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list