Skip to:
Content

BuddyPress.org

Changeset 11232


Ignore:
Timestamp:
11/04/2016 03:38:10 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Loader: Make sure deprecated code is loaded unless explicitly ignored.

See: #7307, #7323, #7322. For 2.7 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/src/bp-loader.php

    r11229 r11232  
    309309        // Whether to refrain from loading deprecated functions
    310310        if ( ! defined( 'BP_IGNORE_DEPRECATED' ) ) {
    311             define( 'BP_IGNORE_DEPRECATED', true );
     311            define( 'BP_IGNORE_DEPRECATED', false );
    312312        }
    313313
     
    340340         *
    341341         * @since 2.0.0
    342          * @since 2.7.0 Defaults to false (do not load deprecated code) for new installs.
    343342         *
    344343         * @const constant BP_IGNORE_DEPRECATED Whether or not to ignore deprecated functionality.
     
    511510
    512511        // Skip or load deprecated content
    513         if ( false !== $this->load_deprecated ) {
     512        if ( true === $this->load_deprecated ) {
    514513            require( $this->plugin_dir . 'bp-core/deprecated/1.2.php' );
    515514            require( $this->plugin_dir . 'bp-core/deprecated/1.5.php' );
Note: See TracChangeset for help on using the changeset viewer.