Skip to:
Content

BuddyPress.org

Changeset 5749 for trunk/bp-loader.php


Ignore:
Timestamp:
02/13/2012 04:03:55 AM (13 years ago)
Author:
johnjamesjacoby
Message:

First pass at refactoring update/install wizard to remove code duplication:

  • Rename and move admin images, css, and js into bp-core/admin/ folders
  • Load the wizard from inside BP_Admin instead of selectively alone, so that basic functions are available
  • Properly enqueue admin scripts
  • Remove duplicated _update_ functions in bp-core-updater.php
  • Remove weird redirect hack as it's no longer needed
  • Remove purpose built functions that are no longer needed
  • See #4005.
  • Indirectly fixes #3964.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-loader.php

    r5727 r5749  
    315315     * @uses plugin_dir_url()
    316316     */
    317     public function constants() {
     317    private function constants() {
    318318
    319319        // Define the BuddyPress version
     
    475475            // The installation process requires a few BuddyPress core libraries
    476476            if ( !empty( $this->maintenance_mode ) ) {
    477                 require( $this->plugin_dir . 'bp-core/bp-core-functions.php'    );
    478                 require( $this->plugin_dir . 'bp-core/bp-core-update.php'       );
    479                 require( $this->plugin_dir . 'bp-core/bp-core-caps.php'         );
    480                 require( $this->plugin_dir . 'bp-core/bp-core-options.php'      );
    481                 require( $this->plugin_dir . 'bp-core/admin/bp-core-update.php' );
     477                require( $this->plugin_dir . 'bp-core/bp-core-admin.php'     );
     478                require( $this->plugin_dir . 'bp-core/bp-core-functions.php' );
     479                require( $this->plugin_dir . 'bp-core/bp-core-template.php'  );
     480                require( $this->plugin_dir . 'bp-core/bp-core-update.php'    );
     481                require( $this->plugin_dir . 'bp-core/bp-core-caps.php'      );
     482                require( $this->plugin_dir . 'bp-core/bp-core-options.php'   );
     483
     484                // Load up BuddyPress's admin
     485                add_action( 'plugins_loaded', 'bp_admin' );
    482486            }
    483487        }
Note: See TracChangeset for help on using the changeset viewer.