diff --git src/bp-core/admin/bp-core-admin-schema.php src/bp-core/admin/bp-core-admin-schema.php
index 1867e78..c017b23 100644
|
|
|
|
| 11 | 11 | defined( 'ABSPATH' ) || exit; |
| 12 | 12 | |
| 13 | 13 | /** |
| | 14 | * Get Database collation type and make sure to load |
| | 15 | * the file that is containing the dbDelta function. |
| | 16 | * |
| | 17 | * @since 2.7.0 |
| | 18 | * |
| | 19 | * @return string Database collation type |
| | 20 | */ |
| | 21 | function bp_core_get_charset_collate() { |
| | 22 | require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); |
| | 23 | |
| | 24 | return $GLOBALS['wpdb']->get_charset_collate(); |
| | 25 | } |
| | 26 | |
| | 27 | /** |
| 14 | 28 | * Main installer. |
| 15 | 29 | * |
| 16 | 30 | * Can be passed an optional array of components to explicitly run installation |
| … |
… |
function bp_core_install( $active_components = false ) { |
| 76 | 90 | */ |
| 77 | 91 | function bp_core_install_notifications() { |
| 78 | 92 | $sql = array(); |
| 79 | | $charset_collate = $GLOBALS['wpdb']->get_charset_collate(); |
| | 93 | $charset_collate = bp_core_get_charset_collate(); |
| 80 | 94 | $bp_prefix = bp_core_get_table_prefix(); |
| 81 | 95 | |
| 82 | 96 | $sql[] = "CREATE TABLE {$bp_prefix}bp_notifications ( |
| … |
… |
function bp_core_install_notifications() { |
| 117 | 131 | */ |
| 118 | 132 | function bp_core_install_activity_streams() { |
| 119 | 133 | $sql = array(); |
| 120 | | $charset_collate = $GLOBALS['wpdb']->get_charset_collate(); |
| | 134 | $charset_collate = bp_core_get_charset_collate(); |
| 121 | 135 | $bp_prefix = bp_core_get_table_prefix(); |
| 122 | 136 | |
| 123 | 137 | $sql[] = "CREATE TABLE {$bp_prefix}bp_activity ( |
| … |
… |
function bp_core_install_activity_streams() { |
| 167 | 181 | */ |
| 168 | 182 | function bp_core_install_friends() { |
| 169 | 183 | $sql = array(); |
| 170 | | $charset_collate = $GLOBALS['wpdb']->get_charset_collate(); |
| | 184 | $charset_collate = bp_core_get_charset_collate(); |
| 171 | 185 | $bp_prefix = bp_core_get_table_prefix(); |
| 172 | 186 | |
| 173 | 187 | $sql[] = "CREATE TABLE {$bp_prefix}bp_friends ( |
| … |
… |
function bp_core_install_friends() { |
| 192 | 206 | */ |
| 193 | 207 | function bp_core_install_groups() { |
| 194 | 208 | $sql = array(); |
| 195 | | $charset_collate = $GLOBALS['wpdb']->get_charset_collate(); |
| | 209 | $charset_collate = bp_core_get_charset_collate(); |
| 196 | 210 | $bp_prefix = bp_core_get_table_prefix(); |
| 197 | 211 | |
| 198 | 212 | $sql[] = "CREATE TABLE {$bp_prefix}bp_groups ( |
| … |
… |
function bp_core_install_groups() { |
| 249 | 263 | */ |
| 250 | 264 | function bp_core_install_private_messaging() { |
| 251 | 265 | $sql = array(); |
| 252 | | $charset_collate = $GLOBALS['wpdb']->get_charset_collate(); |
| | 266 | $charset_collate = bp_core_get_charset_collate(); |
| 253 | 267 | $bp_prefix = bp_core_get_table_prefix(); |
| 254 | 268 | |
| 255 | 269 | $sql[] = "CREATE TABLE {$bp_prefix}bp_messages_messages ( |
| … |
… |
function bp_core_install_extended_profiles() { |
| 308 | 322 | global $wpdb; |
| 309 | 323 | |
| 310 | 324 | $sql = array(); |
| 311 | | $charset_collate = $GLOBALS['wpdb']->get_charset_collate(); |
| | 325 | $charset_collate = bp_core_get_charset_collate(); |
| 312 | 326 | $bp_prefix = bp_core_get_table_prefix(); |
| 313 | 327 | |
| 314 | 328 | // These values should only be updated if they are not already present. |
| … |
… |
function bp_core_install_extended_profiles() { |
| 393 | 407 | */ |
| 394 | 408 | function bp_core_install_blog_tracking() { |
| 395 | 409 | $sql = array(); |
| 396 | | $charset_collate = $GLOBALS['wpdb']->get_charset_collate(); |
| | 410 | $charset_collate = bp_core_get_charset_collate(); |
| 397 | 411 | $bp_prefix = bp_core_get_table_prefix(); |
| 398 | 412 | |
| 399 | 413 | $sql[] = "CREATE TABLE {$bp_prefix}bp_user_blogs ( |