Changeset 6590 for trunk/bp-loader.php
- Timestamp:
- 12/10/2012 10:08:48 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-loader.php
r6561 r6590 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(); … … 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 * Bootstrap constants 195 * 198 196 * @since BuddyPress (1.6) 199 197 * … … 205 203 */ 206 204 private function constants() { 207 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 205 216 206 // Place your custom code (actions/filters) in a file called … … 356 346 $this->current_user = new stdClass(); 357 347 $this->displayed_user = new stdClass(); 348 } 349 350 /** 351 * Legacy BuddyPress constants 352 * 353 * Try to avoid using these. Their values have been moved into variables 354 * in the instance, and have matching functions to get/set their values. 355 * 356 * @since BuddyPress (1.7) 357 */ 358 private function legacy_constants() { 359 360 // Define the BuddyPress version 361 if ( !defined( 'BP_VERSION' ) ) define( 'BP_VERSION', $this->version ); 362 363 // Define the database version 364 if ( !defined( 'BP_DB_VERSION' ) ) define( 'BP_DB_VERSION', $this->db_version ); 358 365 } 359 366
Note: See TracChangeset
for help on using the changeset viewer.