Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/02/2009 10:07:58 PM (16 years ago)
Author:
apeatling
Message:

Fixing registration and avatar bugs with old 1.0 themes in 1.1.

File:
1 edited

Legend:

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

    r1977 r2025  
    622622        }
    623623    }
    624 
    625     /* Deprecated - Signup fields are now in the template */
    626     function get_signup_fields() {
    627         global $wpdb, $bp;
    628        
    629         $sql = $wpdb->prepare( "SELECT f.id FROM {$bp->profile->table_name_fields} AS f, {$bp->profile->table_name_groups} AS g WHERE g.name = %s AND f.parent_id = 0   AND g.id = f.group_id ORDER BY f.id", get_site_option('bp-xprofile-base-group-name') );
    630 
    631         if ( !$temp_fields = $wpdb->get_results($sql) )
    632             return false;
    633        
    634         for ( $i = 0; $i < count($temp_fields); $i++ ) {
    635             $fields[] = new BP_XProfile_Field( $temp_fields[$i]->id, null, false );
    636         }
    637        
    638         return $fields;
    639     }
    640 
    641624}
    642625
Note: See TracChangeset for help on using the changeset viewer.