Ticket #4550: 4550.02.patch
File 4550.02.patch, 1.9 KB (added by , 11 years ago) |
---|
-
bp-loader.php
135 135 self::$instance = new BuddyPress; 136 136 self::$instance->constants(); 137 137 self::$instance->setup_globals(); 138 self::$instance->legacy_constants(); 138 139 self::$instance->includes(); 139 140 self::$instance->setup_actions(); 140 141 } … … 190 191 /** Private Methods *******************************************************/ 191 192 192 193 /** 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 * 198 197 * @since BuddyPress (1.6) 199 198 * 200 199 * @uses is_multisite() … … 205 204 */ 206 205 private function constants() { 207 206 208 // Define the BuddyPress version209 if ( !defined( 'BP_VERSION' ) )210 define( 'BP_VERSION', $this->version );211 212 // Define the database version213 if ( !defined( 'BP_DB_VERSION' ) )214 define( 'BP_DB_VERSION', $this->db_version );215 216 207 // Place your custom code (actions/filters) in a file called 217 208 // '/plugins/bp-custom.php' and it will be loaded before anything else. 218 209 if ( file_exists( WP_PLUGIN_DIR . '/bp-custom.php' ) ) … … 359 350 } 360 351 361 352 /** 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 /** 362 372 * Include required files 363 373 * 364 374 * @since BuddyPress (1.6)