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-update.php

    r4706 r4775  
    1818
    1919                // Ensure that we have access to some utility functions
    20                 require_once( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' );
     20                require( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' );
    2121
    2222                // Get current DB version
     
    585585                        return false;
    586586
    587                 require_once( ABSPATH . WPINC . '/plugin.php' );
     587                require( ABSPATH . WPINC . '/plugin.php' );
    588588                $installed_plugins = get_plugins();
    589589                $installed_themes  = get_themes();
     
    972972
    973973                                        // Include
    974                                         require_once( ABSPATH . WPINC . '/plugin.php' );
     974                                        require( ABSPATH . WPINC . '/plugin.php' );
    975975                                        $installed_plugins = get_plugins();
    976976
     
    10191019
    10201020                        // Load BP and hook the admin menu, so that the redirect is successful
    1021                         require_once( WP_PLUGIN_DIR . '/buddypress/bp-core/bp-core-loader.php' );
    1022                         require_once( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-admin.php' );
     1021                        require( WP_PLUGIN_DIR . '/buddypress/bp-core/bp-core-loader.php' );
     1022                        require( WP_PLUGIN_DIR . '/buddypress/bp-core/admin/bp-core-admin.php' );
    10231023                        bp_core_add_admin_menu();
    10241024
     
    10831083                $active_components = apply_filters( 'bp_active_components', bp_get_option( 'bp-active-components' ) );
    10841084
    1085         require_once( dirname( __FILE__ ) . '/bp-core-schema.php' );
     1085        require( dirname( __FILE__ ) . '/bp-core-schema.php' );
    10861086
    10871087        // Core DB Tables
     
    11161116        global $wpdb;
    11171117
    1118         require_once( dirname( __FILE__ ) . '/bp-core-schema.php' );
     1118        require( dirname( __FILE__ ) . '/bp-core-schema.php' );
    11191119}
    11201120
     
    12621262 */
    12631263function bp_core_update_get_page_meta() {                       
    1264         require_once( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' );
     1264        require( BP_PLUGIN_DIR . '/bp-core/bp-core-functions.php' );
    12651265       
    12661266        if ( !$page_ids = bp_get_option( 'bp-pages' ) )
Note: See TracChangeset for help on using the changeset viewer.