Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/22/2017 05:54:26 PM (8 years ago)
Author:
boonebgorges
Message:

Ensure that deprecated code is available when required.

  • Avoid calling a deprecated bp-blogs function when a non-deprecated version is available.
  • Ensure that legacy BuddyBar code is loaded when the BuddyBar is forced on.

Props r-a-y.
Fixes #7307.

File:
1 edited

Legend:

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

    r10825 r11442  
    6868        _doing_it_wrong( __FUNCTION__, __( 'The BuddyBar is no longer supported. Please migrate to the WordPress toolbar as soon as possible.', 'buddypress' ), '2.1.0' );
    6969
     70        // Load deprecated code if not available.
     71        if ( ! function_exists( 'bp_core_admin_bar' ) ) {
     72            require buddypress()->plugin_dir . 'bp-core/deprecated/2.1.php';
     73        }
     74
    7075        // Keep the WP Toolbar from loading.
    7176        show_admin_bar( false );
Note: See TracChangeset for help on using the changeset viewer.