Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/28/2009 08:06:31 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1111

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-templatetags.php

    r1977 r1978  
    5454        if ( !$fields = wp_cache_get( 'xprofile_fields_' . $this->group->id . '_' . $this->user_id, 'bp' ) ) {
    5555            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 );
    5760                $fields[$i] = $field;
    5861            }
     
    336339    function bp_get_the_profile_field_edit_value() {
    337340        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
    343342        /**
    344343         * 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.