Skip to:
Content

BuddyPress.org

Changeset 5333 for trunk/bp-loader.php


Ignore:
Timestamp:
11/14/2011 06:55:42 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Make all core functions available on installation. Needed for adding roles and caps. See #3740.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-loader.php

    r5324 r5333  
    444444        if ( is_multisite() )
    445445            $this->is_network_activate = !empty( $versions['1.5-multi'] );
    446            
     446
     447        // Require all of the BuddyPress core libraries
     448        require( $this->plugin_dir . 'bp-core/bp-core-caps.php'       );
     449        require( $this->plugin_dir . 'bp-core/bp-core-cache.php'      );
     450        require( $this->plugin_dir . 'bp-core/bp-core-hooks.php'      );
     451        require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php'      );
     452        require( $this->plugin_dir . 'bp-core/bp-core-update.php'     );
     453        require( $this->plugin_dir . 'bp-core/bp-core-classes.php'    );
     454        require( $this->plugin_dir . 'bp-core/bp-core-filters.php'    );
     455        require( $this->plugin_dir . 'bp-core/bp-core-avatars.php'    );
     456        require( $this->plugin_dir . 'bp-core/bp-core-widgets.php'    );
     457        require( $this->plugin_dir . 'bp-core/bp-core-template.php'   );
     458        require( $this->plugin_dir . 'bp-core/bp-core-adminbar.php'   );
     459        require( $this->plugin_dir . 'bp-core/bp-core-buddybar.php'   );
     460        require( $this->plugin_dir . 'bp-core/bp-core-catchuri.php'   );
     461        require( $this->plugin_dir . 'bp-core/bp-core-component.php'  );
     462        require( $this->plugin_dir . 'bp-core/bp-core-functions.php'  );
     463        require( $this->plugin_dir . 'bp-core/bp-core-moderation.php' );
     464        require( $this->plugin_dir . 'bp-core/bp-core-loader.php'     );
     465
     466        // Skip or load deprecated content
     467        if ( false === $this->load_deprecated ) {
     468            require( $this->plugin_dir . 'bp-core/deprecated/1.5.php' );
     469            require( $this->plugin_dir . 'bp-core/deprecated/1.6.php' );
     470        }
     471
     472        /** Update/Install ****************************************************/
     473
    447474        // This is a new installation
    448475        if ( empty( $this->db_version_raw ) ) {
     
    455482            // Setup the BuddyPress theme directory
    456483            register_theme_directory( $this->themes_dir );
    457 
    458             // Require all of the BuddyPress core libraries
    459             require( $this->plugin_dir . 'bp-core/bp-core-caps.php'       );
    460             require( $this->plugin_dir . 'bp-core/bp-core-cache.php'      );
    461             require( $this->plugin_dir . 'bp-core/bp-core-hooks.php'      );
    462             require( $this->plugin_dir . 'bp-core/bp-core-cssjs.php'      );
    463             require( $this->plugin_dir . 'bp-core/bp-core-update.php'     );
    464             require( $this->plugin_dir . 'bp-core/bp-core-classes.php'    );
    465             require( $this->plugin_dir . 'bp-core/bp-core-filters.php'    );
    466             require( $this->plugin_dir . 'bp-core/bp-core-avatars.php'    );
    467             require( $this->plugin_dir . 'bp-core/bp-core-widgets.php'    );
    468             require( $this->plugin_dir . 'bp-core/bp-core-template.php'   );
    469             require( $this->plugin_dir . 'bp-core/bp-core-buddybar.php'   );
    470             require( $this->plugin_dir . 'bp-core/bp-core-catchuri.php'   );
    471             require( $this->plugin_dir . 'bp-core/bp-core-component.php'  );
    472             require( $this->plugin_dir . 'bp-core/bp-core-functions.php'  );
    473             require( $this->plugin_dir . 'bp-core/bp-core-moderation.php' );
    474             require( $this->plugin_dir . 'bp-core/bp-core-adminbar.php'   );
    475             require( $this->plugin_dir . 'bp-core/bp-core-loader.php'     );
    476 
    477             // Skip or load deprecated content
    478             if ( false === $this->load_deprecated ) {
    479                 require( $this->plugin_dir . 'bp-core/deprecated/1.5.php' );
    480                 require( $this->plugin_dir . 'bp-core/deprecated/1.6.php' );
    481             }
    482484
    483485            // Check if an update is required
Note: See TracChangeset for help on using the changeset viewer.