Changeset 3058
- Timestamp:
- 06/20/2010 09:18:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-xprofile.php
r2996 r3058 1 1 <?php 2 define ( 'BP_XPROFILE_DB_VERSION', '18 50' );2 define ( 'BP_XPROFILE_DB_VERSION', '1870' ); 3 3 4 4 /* Define the slug for the component */ … … 72 72 $sql[] = "INSERT INTO {$bp->profile->table_name_groups} VALUES ( 1, '" . get_site_option( 'bp-xprofile-base-group-name' ) . "', '', 0 );"; 73 73 74 if ( !$wpdb->get_var( "SELECT id FROM {$bp->profile->table_name_fields} WHERE id = 1" ) ) { 75 $sql[] = "INSERT INTO {$bp->profile->table_name_fields} ( 76 id, group_id, parent_id, type, name, is_required, can_delete 77 ) VALUES ( 78 1, 1, 0, 'textbox', '" . get_site_option( 'bp-xprofile-fullname-field-name' ) . "', 1, 0 79 );"; 80 } 74 if ( !$wpdb->get_var( "SELECT id FROM {$bp->profile->table_name_fields} WHERE id = 1" ) ) 75 $sql[] = "INSERT INTO {$bp->profile->table_name_fields} VALUES ( 1, 1, 0, 'textbox', '" . get_site_option( 'bp-xprofile-fullname-field-name' ) . "', '', 1, 0, 0, 0, '', 0 );"; 76 81 77 } 82 78
Note: See TracChangeset
for help on using the changeset viewer.