Ticket #6347: 6347.01.patch
| File 6347.01.patch, 1.6 KB (added by , 11 years ago) |
|---|
-
src/bp-templates/bp-legacy/buddypress/members/register.php
63 63 <h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4> 64 64 65 65 <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> 66 <?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(); ?>66 <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile_signup() ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> 67 67 68 68 <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> 69 69 -
src/bp-xprofile/bp-xprofile-template.php
298 298 return apply_filters( 'bp_has_profile', $profile_template->has_groups(), $profile_template ); 299 299 } 300 300 301 /** 302 * Query XProfile fields used during signup in `register.php` template part 303 * 304 * @since BuddyPress (2.3.0) 305 * 306 * @param mixed $args 307 */ 308 function bp_has_profile_signup( $args = '' ) { 309 310 // Parse signup arguments 311 $r = bp_parse_args( $args, array( 312 'profile_group_id' => 1, 313 'fetch_field_data' => false 314 ), 'signup_fields' ); 315 316 // Query for profile fields to show in signup 317 return bp_has_profile( $r ); 318 } 319 301 320 function bp_profile_groups() { 302 321 global $profile_template; 303 322 return $profile_template->profile_groups();