Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#2634 closed defect (bug) (fixed)

HTTPS related issue in bp-blogs-templatetags.php (with fixed code)

Reported by: mareck's profile mareck Owned by:
Milestone: 1.5 Priority: major
Severity: Version:
Component: Core Keywords:
Cc:

Description

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 file.

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>
<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) ?>

</p>
<?php
do_action('signup_finished');

}

Change History (1)

#1 @boonebgorges
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3481]) Makes new blog registration message https aware. Fixes #2634, props mareck

Note: See TracTickets for help on using tickets.