Changeset 9337
- Timestamp:
- 01/09/2015 09:06:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-loader.php
r9336 r9337 15 15 16 16 class BP_XProfile_Component extends BP_Component { 17 17 18 /** 18 19 * Profile field types … … 67 68 ); 68 69 69 if ( is_admin() ) 70 if ( is_admin() ) { 70 71 $includes[] = 'admin'; 72 } 71 73 72 74 parent::includes( $includes ); … … 85 87 86 88 // Define a slug, if necessary 87 if ( !defined( 'BP_XPROFILE_SLUG' ) ) 89 if ( !defined( 'BP_XPROFILE_SLUG' ) ) { 88 90 define( 'BP_XPROFILE_SLUG', 'profile' ); 91 } 89 92 90 93 // Assign the base group and fullname field names to constants … … 397 400 $bp = buddypress(); 398 401 399 if ( ! isset( $bp->profile->id ) )402 if ( ! isset( $bp->profile->id ) ) { 400 403 $bp->profile = new BP_XProfile_Component(); 404 } 401 405 } 402 406 add_action( 'bp_setup_components', 'bp_setup_xprofile', 2 );
Note: See TracChangeset
for help on using the changeset viewer.