Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/05/2023 07:32:10 AM (3 years ago)
Author:
imath
Message:

Prevent potential 3rd party plugins/themes issues for new installs

  • Load 12.0 deprecated functions even in new installs.
  • Add an Admin Notification to inform about BP Classic: the BP backwards compatibility Add-on.

Props emaralive, dcavins

Fixes #9015
Closes https://github.com/buddypress/buddypress/pull/183

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-update.php

    r13614 r13632  
    204204        }
    205205
    206         // Install BP schema and activate only Activity and XProfile.
     206        // Install BP schema and activate default components.
    207207        if ( bp_is_install() ) {
    208208                // Set the first BP major version the plugin was installed.
    209209                bp_update_option( '_bp_initial_major_version', bp_get_major_version() );
    210210
    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.
    212220                bp_core_install( $default_components );
    213221                bp_update_option( 'bp-active-components', $default_components );
Note: See TracChangeset for help on using the changeset viewer.