Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/09/2012 09:38:45 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Remove a bunch of unneeded globals and clean up some code in Core component. See #3989.

File:
1 edited

Legend:

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

    r5659 r5683  
    8989
    9090    function add_steps() {
    91         global $wp_rewrite;
    9291
    9392        // Setup wizard steps
     
    11711170
    11721171    function setup_pages( $pages ) {
     1172
     1173        $bp_pages = array();
     1174
    11731175        foreach ( $pages as $key => $value ) {
    11741176            if ( 'page' == $value ) {
     
    12141216
    12151217function bp_core_install( $active_components = false ) {
    1216     global $wpdb;
    12171218
    12181219    if ( empty( $active_components ) )
     
    12501251
    12511252function bp_core_update( $disabled ) {
    1252     global $wpdb;
    1253 
    12541253    require( dirname( __FILE__ ) . '/bp-core-schema.php' );
    12551254}
Note: See TracChangeset for help on using the changeset viewer.