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 | 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 = ) {
?> <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');
}
(In [3481]) Makes new blog registration message https aware. Fixes #2634, props mareck