Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/21/2012 11:31:32 PM (13 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.

File:
1 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() );
Note: See TracChangeset for help on using the changeset viewer.