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-functions.php

    r13614 r13632  
    48864886        $load_latest_deprecated = $initial_version < $current_version;
    48874887
    4888         // We don't load deprecated functions for new installs.
     4888        // New installs.
    48894889        if ( ! $load_latest_deprecated ) {
    48904890                // Run some additional checks if PHPUnit is running.
     
    49054905                        }
    49064906                }
    4907                 return array();
     4907
     4908                // Only load 12.0 deprecated functions.
     4909                return array( '12.0' );
    49084910        }
    49094911
     
    51205122                                __( 'If any of the above items are true, we strongly advise you to install and activate the Classic Add-on before updating to BuddyPress 12.0.0.', 'buddypress' ),
    51215123                                'version' => 11.4,
    5122                 )
     5124                ),
     5125                'bp120-new-installs-warning' => (object) array(
     5126                        'id'      => 'bp120-new-installs-warning',
     5127                        'href'    => add_query_arg(
     5128                                array(
     5129                                        'tab'  => 'bp-add-ons',
     5130                                        'show' => 'bp-classic',
     5131                                        'n'    => 'bp120-new-installs-warning'
     5132                                ),
     5133                                bp_get_admin_url( 'plugin-install.php' )
     5134                        ),
     5135                        'text'    => __( 'Get The BP Classic Add-on', 'buddypress' ),
     5136                        'title'   => __( 'Thank you for installing BuddyPress 12.0!', 'buddypress' ),
     5137                        'content' => __( 'BuddyPress 12.0 introduces major core changes, overhauling the way that BuddyPress builds and parses URLs.', 'buddypress' ) . '<br><br>' .
     5138                                __( 'If you find that your site is not working correctly with the new version, try installing the new BP Classic Add-on that adds backwards compatibility for plugins and themes that have not yet been updated to work with BuddyPress 12.0.', 'buddypress' ),
     5139                                'version' => 12.0,
     5140                ),
    51235141        );
    51245142
Note: See TracChangeset for help on using the changeset viewer.