Changeset 5683 for trunk/bp-core/admin/bp-core-schema.php
- Timestamp:
- 02/09/2012 09:38:45 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-schema.php
r5259 r5683 16 16 17 17 function bp_core_install_notifications() { 18 global $wpdb; 19 20 $charset_collate = bp_core_set_charset(); 21 $bp_prefix = bp_core_get_table_prefix();18 19 $sql = array(); 20 $charset_collate = bp_core_set_charset(); 21 $bp_prefix = bp_core_get_table_prefix(); 22 22 23 23 $sql[] = "CREATE TABLE {$bp_prefix}bp_notifications ( … … 39 39 ) {$charset_collate};"; 40 40 41 dbDelta( $sql);41 dbDelta( $sql ); 42 42 } 43 43 44 44 function bp_core_install_activity_streams() { 45 global $wpdb; 46 47 $charset_collate = bp_core_set_charset(); 48 $bp_prefix = bp_core_get_table_prefix();45 46 $sql = array(); 47 $charset_collate = bp_core_set_charset(); 48 $bp_prefix = bp_core_get_table_prefix(); 49 49 50 50 $sql[] = "CREATE TABLE {$bp_prefix}bp_activity ( … … 84 84 ) {$charset_collate};"; 85 85 86 dbDelta( $sql);86 dbDelta( $sql ); 87 87 } 88 88 89 89 function bp_core_install_friends() { 90 global $wpdb; 91 92 $charset_collate = bp_core_set_charset(); 93 $bp_prefix = bp_core_get_table_prefix();90 91 $sql = array(); 92 $charset_collate = bp_core_set_charset(); 93 $bp_prefix = bp_core_get_table_prefix(); 94 94 95 95 $sql[] = "CREATE TABLE {$bp_prefix}bp_friends ( … … 104 104 ) {$charset_collate};"; 105 105 106 dbDelta( $sql);106 dbDelta( $sql ); 107 107 } 108 108 109 109 function bp_core_install_groups() { 110 global $wpdb; 111 112 $charset_collate = bp_core_set_charset(); 113 $bp_prefix = bp_core_get_table_prefix();110 111 $sql = array(); 112 $charset_collate = bp_core_set_charset(); 113 $bp_prefix = bp_core_get_table_prefix(); 114 114 115 115 $sql[] = "CREATE TABLE {$bp_prefix}bp_groups ( … … 156 156 ) {$charset_collate};"; 157 157 158 dbDelta( $sql);158 dbDelta( $sql ); 159 159 } 160 160 161 161 function bp_core_install_private_messaging() { 162 global $wpdb; 163 164 $charset_collate = bp_core_set_charset(); 165 $bp_prefix = bp_core_get_table_prefix();162 163 $sql = array(); 164 $charset_collate = bp_core_set_charset(); 165 $bp_prefix = bp_core_get_table_prefix(); 166 166 167 167 $sql[] = "CREATE TABLE {$bp_prefix}bp_messages_messages ( … … 199 199 ) {$charset_collate};"; 200 200 201 dbDelta( $sql);201 dbDelta( $sql ); 202 202 } 203 203 … … 205 205 global $wpdb; 206 206 207 $charset_collate = bp_core_set_charset(); 208 $bp_prefix = bp_core_get_table_prefix(); 207 $sql = array(); 208 $charset_collate = bp_core_set_charset(); 209 $bp_prefix = bp_core_get_table_prefix(); 209 210 210 211 bp_update_option( 'bp-xprofile-base-group-name', _x( 'Base', 'First XProfile group name', 'buddypress' ) ); … … 275 276 276 277 function bp_core_install_blog_tracking() { 277 global $wpdb; 278 279 $charset_collate = bp_core_set_charset(); 280 $bp_prefix = bp_core_get_table_prefix();278 279 $sql = array(); 280 $charset_collate = bp_core_set_charset(); 281 $bp_prefix = bp_core_get_table_prefix(); 281 282 282 283 $sql[] = "CREATE TABLE {$bp_prefix}bp_user_blogs ( … … 297 298 ) {$charset_collate};"; 298 299 299 dbDelta( $sql);300 dbDelta( $sql ); 300 301 } 301 302
Note: See TracChangeset
for help on using the changeset viewer.