Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/17/2023 11:14:06 AM (22 months ago)
Author:
imath
Message:

Deprecate BP Legacy widgets

Deprecate all classes, functions, JavaScripts and files related to Legacy Widgets. Legacy Widgets are now available from the BP Classic plugin.

See #8869
Closes https://github.com/buddypress/buddypress/pull/99

File:
1 edited

Legend:

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

    r13432 r13481  
    861861        }
    862862
     863        /* Widgets **************************************************/
     864        $widget_options = array(
     865            'widget_bp_core_login_widget',
     866            'widget_bp_core_members_widget',
     867            'widget_bp_core_whos_online_widget',
     868            'widget_bp_core_recently_active_widget',
     869            'widget_bp_groups_widget',
     870            'widget_bp_messages_sitewide_notices_widget',
     871        );
     872
     873        foreach ( $widget_options as $widget_option ) {
     874            bp_delete_option( $widget_option );
     875        }
     876
    863877        // Finally make sure to rebuilt permalinks at next page load.
    864878        bp_delete_rewrite_rules();
Note: See TracChangeset for help on using the changeset viewer.