Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/22/2011 07:32:48 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Prebeta code clean-up - see #3367:

  • Remove PHP4 constructors on loader classes
  • Remove class functions that start with underscores
  • Use require() rather than require_once() where appropriate
  • Remove background color on messages activity time
File:
1 edited

Legend:

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

    r4667 r4775  
    179179                if ( isset( $_POST['bp_components'] ) ) {
    180180                        // Save settings and upgrade schema
    181                         require_once( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-update.php' );
     181                        require( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-update.php' );
    182182                        $bp->active_components = stripslashes_deep( $_POST['bp_components'] );
    183183                        bp_core_install( $bp->active_components );
     
    330330        global $bp_wizard;
    331331                       
    332         require_once( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' );
     332        require( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' );
    333333
    334334        $active_components = apply_filters( 'bp_active_components', bp_get_option( 'bp-active-components' ) );
Note: See TracChangeset for help on using the changeset viewer.