Skip to:
Content

BuddyPress.org

Changeset 5824


Ignore:
Timestamp:
02/21/2012 11:31:32 PM (14 years ago)
Author:
boonebgorges
Message:

Use bp_get_signup_page() when constructing the 'create an account' link in the bp-default sidebar.
Prevents incorrect registration links when using the login widget on non-root blogs.
Also added some PHPDoc.
Fixes #4032.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-template.php

    r5758 r5824  
    959959}
    960960
     961/**
     962 * Echoes the URL to the signup page
     963 */
    961964function bp_signup_page() {
    962965        echo bp_get_signup_page();
    963966}
     967        /**
     968         * Returns the URL to the signup page
     969         *
     970         * @return string
     971         */
    964972        function bp_get_signup_page() {
    965 
    966973                if ( bp_has_custom_signup_page() ) {
    967974                        $page = trailingslashit( bp_get_root_domain() . '/' . bp_get_signup_slug() );
  • trunk/bp-themes/bp-default/sidebar.php

    r5771 r5824  
    3535                        <p id="login-text">
    3636
    37                                 <?php printf( __( 'Please <a href="%s" title="Create an account">create an account</a> to get started.', 'buddypress' ), site_url( bp_get_signup_slug() . '/' ) ); ?>
     37                                <?php printf( __( 'Please <a href="%s" title="Create an account">create an account</a> to get started.', 'buddypress' ), bp_get_signup_page() ); ?>
    3838
    3939                        </p>
Note: See TracChangeset for help on using the changeset viewer.