Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/16/2021 05:37:03 AM (5 years ago)
Author:
imath
Message:

Update both Template Pack registration forms to use signup fields

  • Nouveau and Legacy are now usinf the bp_xprofile_signup_args() to build the argument of their registration's form xProfile loop.
  • Include a backward compatibility mechanism if the register.php page has been overriden from a theme or a plugin.
  • This commit also includes PHP Unit tests about the xProfile loop and Signup Fields.

Props johnjamesjacoby, boonebgorges, DJPaul, Offereins

Fixes #6347

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/register.php

    r12260 r12887  
    44 *
    55 * @since 3.0.0
    6  * @version 4.0.0
     6 * @version 8.0.0
    77 */
    88
     
    3939                <?php /***** Extra Profile Details ******/ ?>
    4040
    41                 <?php if ( bp_is_active( 'xprofile' ) && bp_nouveau_base_account_has_xprofile() ) : ?>
     41                <?php if ( bp_is_active( 'xprofile' ) && bp_nouveau_has_signup_xprofile_fields( true ) ) : ?>
    4242
    4343                    <?php bp_nouveau_signup_hook( 'before', 'signup_profile' ); ?>
Note: See TracChangeset for help on using the changeset viewer.