Changeset 1978 for trunk/bp-xprofile/bp-xprofile-templatetags.php
- Timestamp:
- 09/28/2009 08:06:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-templatetags.php
r1977 r1978 54 54 if ( !$fields = wp_cache_get( 'xprofile_fields_' . $this->group->id . '_' . $this->user_id, 'bp' ) ) { 55 55 for ( $i = 0; $i < count($this->group->fields); $i++ ) { 56 $field = new BP_XProfile_Field( $this->group->fields[$i]->id, $this->user_id ); 56 /* Don't try and fetch any existing profile data if we are using this loop on the registration page */ 57 $get_data = ( !bp_is_register_page() ) ? true : false; 58 59 $field = new BP_XProfile_Field( $this->group->fields[$i]->id, $this->user_id, $get_data ); 57 60 $fields[$i] = $field; 58 61 } … … 336 339 function bp_get_the_profile_field_edit_value() { 337 340 global $field; 338 339 /* Don't ever return an edit value if this is the registration page and nothing has been posted */ 340 if ( bp_is_register_page() && !isset( $_POST['field_' . $field->id] ) ) 341 return; 342 341 343 342 /** 344 343 * Check to see if the posted value is different, if it is re-display this
Note: See TracChangeset
for help on using the changeset viewer.