Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/29/2016 09:00:26 PM (7 years ago)
Author:
boonebgorges
Message:

Remove do_autoload checks and manual class loaders.

Our PHP 5.3 requirement means that spl_autoload_register() will
always be available.

See #7299.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-loader.php

    r11262 r11360  
    108108     * @var bool
    109109     */
    110     public $do_autoload = false;
     110    public $do_autoload = true;
    111111
    112112    /**
     
    465465     */
    466466    private function includes() {
    467         if ( function_exists( 'spl_autoload_register' ) ) {
    468             spl_autoload_register( array( $this, 'autoload' ) );
    469             $this->do_autoload = true;
    470         }
     467        spl_autoload_register( array( $this, 'autoload' ) );
    471468
    472469        // Load the WP abstraction file so BuddyPress can run on all WordPress setups.
     
    503500        require( $this->plugin_dir . 'bp-core/bp-core-loader.php'           );
    504501        require( $this->plugin_dir . 'bp-core/bp-core-customizer-email.php' );
    505 
    506         if ( ! $this->do_autoload ) {
    507             require( $this->plugin_dir . 'bp-core/bp-core-classes.php' );
    508         }
    509502
    510503        // Maybe load deprecated functionality (this double negative is proof positive!)
Note: See TracChangeset for help on using the changeset viewer.