Skip to:
Content

BuddyPress.org

Ticket #4550: 4550.02.patch

File 4550.02.patch, 1.9 KB (added by ddean, 11 years ago)
  • bp-loader.php

     
    135135                        self::$instance = new BuddyPress;
    136136                        self::$instance->constants();
    137137                        self::$instance->setup_globals();
     138                        self::$instance->legacy_constants();
    138139                        self::$instance->includes();
    139140                        self::$instance->setup_actions();
    140141                }
     
    190191        /** Private Methods *******************************************************/
    191192
    192193        /**
    193          * Legacy BuddyPress constants
    194          *
    195          * Try to avoid using these. Their values have been moved into variables
    196          * in the $bp global, and have matching functions to get/set their value.
    197          *
     194         *
     195         * Bootstrap constants
     196         *
    198197         * @since BuddyPress (1.6)
    199198         *
    200199         * @uses is_multisite()
     
    205204         */
    206205        private function constants() {
    207206
    208                 // Define the BuddyPress version
    209                 if ( !defined( 'BP_VERSION' ) )
    210                         define( 'BP_VERSION', $this->version );
    211 
    212                 // Define the database version
    213                 if ( !defined( 'BP_DB_VERSION' ) )
    214                         define( 'BP_DB_VERSION', $this->db_version );
    215 
    216207                // Place your custom code (actions/filters) in a file called
    217208                // '/plugins/bp-custom.php' and it will be loaded before anything else.
    218209                if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) )
     
    359350        }
    360351
    361352        /**
     353         * Legacy BuddyPress constants
     354         *
     355         * Try to avoid using these. Their values have been moved into variables
     356         * in the $bp global, and have matching functions to get/set their value.
     357         *
     358         */
     359        private function legacy_constants() {
     360               
     361                // Define the BuddyPress version
     362                if ( !defined( 'BP_VERSION' ) )
     363                        define( 'BP_VERSION', $this->version );
     364
     365                // Define the database version
     366                if ( !defined( 'BP_DB_VERSION' ) )
     367                        define( 'BP_DB_VERSION', $this->db_version );
     368
     369        }
     370
     371        /**
    362372         * Include required files
    363373         *
    364374         * @since BuddyPress (1.6)