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/includes/template-tags.php

    r12836 r12887  
    15161516
    15171517        // Provide a class token to acknowledge additional extended profile fields added to default account reg screen
    1518         if ( 'register' === bp_current_component() && bp_is_active( 'xprofile' ) && bp_nouveau_base_account_has_xprofile()) {
     1518        if ( 'register' === bp_current_component() && bp_is_active( 'xprofile' ) && bp_nouveau_has_signup_xprofile_fields()) {
    15191519            $classes[] = 'extended-default-reg';
    15201520        }
Note: See TracChangeset for help on using the changeset viewer.