[buddypress-trac] [BuddyPress] #2634: HTTPS related issue in bp-blogs-templatetags.php (with fixed code)

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Sep 14 14:27:55 UTC 2010

#2634: HTTPS related issue in bp-blogs-templatetags.php (with fixed code)
 Reporter:  mareck  |       Owner:     
     Type:  defect  |      Status:  new
 Priority:  major   |   Milestone:  1.3
Component:  Core    |    Keywords:     
 There is an issue in the bp_blogs_confirm_blog_signup function in bp-
 blogs-templatetags.php. The protocol is automatically set to “http://”
 versus using the is_ssl() check. I’ve updated the function below below for
 anyone needing it. Just paste it overtop the existing function in that

 function bp_blogs_confirm_blog_signup( $domain, $path, $blog_title,
 $user_name, $user_email = '', $meta = '' ) {
         $protocol = is_ssl() ? 'https://' : 'http://';

         ?>        <p><?php _e('Congratulations! You have successfully
 registered a new blog.', 'buddypress') ?></p>
                 <?php printf(__('<a
 href="'.$protocol.'%1$s">'.$protocol.'%2$s</a> is your new blog.  <a
 href="%3$s">Login</a> as "%4$s" using your existing password.',
 'buddypress'), $domain.$path, $domain.$path, $protocol . $domain.$path .
 "wp-login.php", $user_name) ?>

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

More information about the buddypress-trac mailing list