Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/16/2021 05:37:03 AM (4 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-legacy/buddypress/members/register.php

    r12595 r12887  
    166166
    167167                    <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?>
    168                     <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
     168                    <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( bp_xprofile_signup_args() ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    169169
    170170                    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
Note: See TracChangeset for help on using the changeset viewer.