Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/22/2011 01:45:08 PM (14 years ago)
Author:
boonebgorges
Message:

Cleans up require()s in BP installation process. Fixes #3369. See #3367

File:
1 edited

Legend:

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

    r4775 r4794  
    1717        global $bp;
    1818
    19         // Ensure that we have access to some utility functions
    20         require( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' );
     19        // Ensure that we have access to some utility functions. Must use require_once()
     20        // because BP Core is loaded during incremental upgrades
     21        require_once( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' );
    2122
    2223        // Get current DB version
     
    585586            return false;
    586587
    587         require( ABSPATH . WPINC . '/plugin.php' );
    588588        $installed_plugins = get_plugins();
    589589        $installed_themes  = get_themes();
     
    10191019
    10201020            // Load BP and hook the admin menu, so that the redirect is successful
    1021             require( WP_PLUGIN_DIR . '/buddypress/bp-core/bp-core-loader.php' );
    10221021            require( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-admin.php' );
    10231022            bp_core_add_admin_menu();
     
    12611260 * @return array $page_ids
    12621261 */
    1263 function bp_core_update_get_page_meta() {           
    1264     require( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' );
    1265    
     1262function bp_core_update_get_page_meta() {
    12661263    if ( !$page_ids = bp_get_option( 'bp-pages' ) )
    12671264        $page_ids = array();
Note: See TracChangeset for help on using the changeset viewer.