Changeset 13632 for trunk/src/bp-core/bp-core-update.php
- Timestamp:
- 11/05/2023 07:32:10 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-update.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-update.php
r13614 r13632 204 204 } 205 205 206 // Install BP schema and activate only Activity and XProfile.206 // Install BP schema and activate default components. 207 207 if ( bp_is_install() ) { 208 208 // Set the first BP major version the plugin was installed. 209 209 bp_update_option( '_bp_initial_major_version', bp_get_major_version() ); 210 210 211 // Apply schema and set Activity and XProfile components as active. 211 // Add an unread Admin notification. 212 if ( 13422 === bp_get_db_version() ) { 213 $unread = bp_core_get_unread_admin_notifications(); 214 $unread[] = 'bp120-new-installs-warning'; 215 216 bp_update_option( 'bp_unread_admin_notifications', $unread ); 217 } 218 219 // Apply schema and set default components as active. 212 220 bp_core_install( $default_components ); 213 221 bp_update_option( 'bp-active-components', $default_components );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)