Skip to:
Content
Pages
Categories
Search
Top
Bottom

Fixed HTTPS related issue in bp-blogs-templatetags.php


  • Mark C
    Participant

    @mareck

    For those trying to use Buddypress over HTTPS, 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://’;

    ?>

    <?php printf(__('‘.$protocol.’%2$s is your new blog. Login as “%4$s” using your existing password.’, ‘buddypress’), $domain.$path, $domain.$path, $protocol . $domain.$path . “wp-login.php”, $user_name) ?>

    <?php
    do_action(‘signup_finished’);
    }`

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fixed HTTPS related issue in bp-blogs-templatetags.php’ is closed to new replies.
Skip to toolbar