Changeset 4041
- Timestamp:
- 02/12/2011 08:50:26 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-template.php
r3985 r4041 293 293 switch ( $scope ) { 294 294 case 'friends': 295 if ( function_exists( 'friends_get_friend_user_ids' ) )295 if ( bp_is_active( 'friends' ) ) 296 296 $friends = friends_get_friend_user_ids( $user_id ); 297 297 if ( empty( $friends ) ) … … 301 301 break; 302 302 case 'groups': 303 if ( function_exists( 'groups_get_user_groups' ) ) {303 if ( bp_is_active( 'groups' ) ) { 304 304 $groups = groups_get_user_groups( $user_id ); 305 305 if ( empty( $groups['groups'] ) ) -
trunk/bp-blogs/bp-blogs-activity.php
r3761 r4041 9 9 global $bp; 10 10 11 if ( ! function_exists( 'bp_activity_set_action' ) )11 if ( !bp_is_active( 'activity' ) ) 12 12 return false; 13 13 … … 23 23 global $bp; 24 24 25 if ( ! function_exists( 'bp_activity_add' ) )25 if ( !bp_is_active( 'activity' ) ) 26 26 return false; 27 27 … … 31 31 * component globals. 32 32 */ 33 if ( !$bp->activity && function_exists('bp_activity_setup_globals') )33 if ( !$bp->activity && bp_is_active( 'activity' ) ) 34 34 bp_activity_setup_globals(); 35 35 … … 51 51 52 52 // Remove large images and replace them with just one image thumbnail 53 if ( function_exists( 'bp_activity_thumbnail_content_images' ) && !empty( $content ) )53 if ( bp_is_active( 'activity' ) && !empty( $content ) ) 54 54 $content = bp_activity_thumbnail_content_images( $content, $primary_link ); 55 55 … … 75 75 global $bp; 76 76 77 if ( function_exists( 'bp_activity_delete_by_item_id' ) ) {77 if ( bp_is_active( 'activity' ) ) { 78 78 $defaults = array( 79 79 'item_id' => false, -
trunk/bp-blogs/bp-blogs-loader.php
r3938 r4041 125 125 if ( bp_is_blogs_component() ) { 126 126 if ( bp_is_my_profile() ) { 127 if ( function_exists('xprofile_setup_nav') ) {127 if ( bp_is_active( 'xprofile' ) ) { 128 128 $bp->bp_options_title = __( 'My Blogs', 'buddypress' ); 129 129 } -
trunk/bp-core/admin/bp-core-admin.php
r4031 r4041 160 160 </tr> 161 161 162 <?php if ( function_exists( 'bp_forums_setup') ) : ?>162 <?php if ( bp_is_active( 'forums' ) ) : ?> 163 163 164 164 <tr> -
trunk/bp-core/admin/bp-core-update.php
r4034 r4041 69 69 $steps[] = __( 'Database Update', 'buddypress' ); 70 70 71 if ( $this->database_version < 1225 || ( function_exists( 'bp_core_get_page_meta' ) && !bp_core_get_page_meta()) )71 if ( $this->database_version < 1225 || !bp_core_get_page_meta() ) 72 72 $steps[] = __( 'Pages', 'buddypress' ); 73 73 -
trunk/bp-core/bp-core-filters.php
r3982 r4041 19 19 $pages[] = $bp->pages->register->id; 20 20 21 if ( !bp_is_active( 'forums' ) || ( function_exists( 'bp_forums_is_installed_correctly' ) && !bp_forums_is_installed_correctly() ) )21 if ( !bp_is_active( 'forums' ) || ( bp_is_active( 'forums' ) && !bp_forums_is_installed_correctly() ) ) 22 22 if ( !empty( $bp->pages->forums ) ) 23 23 $pages[] = $bp->pages->forums->id; -
trunk/bp-friends/bp-friends-activity.php
r3917 r4041 9 9 global $bp; 10 10 11 if ( ! function_exists( 'bp_activity_add' ) )11 if ( !bp_is_active( 'activity' ) ) 12 12 return false; 13 13 … … 43 43 global $bp; 44 44 45 if ( ! function_exists( 'bp_activity_set_action' ) )45 if ( !bp_is_active( 'activity' ) ) 46 46 return false; 47 47 -
trunk/bp-groups/bp-groups-activity.php
r3933 r4041 14 14 global $bp; 15 15 16 if ( ! function_exists( 'bp_activity_set_action' ) )16 if ( !bp_is_active( 'activity' ) ) 17 17 return false; 18 18 … … 29 29 global $bp; 30 30 31 if ( ! function_exists( 'bp_activity_add' ) )31 if ( !bp_is_active( 'activity' ) ) 32 32 return false; 33 33 -
trunk/bp-members/bp-members-signup.php
r3982 r4041 496 496 497 497 function bp_members_new_user_activity( $user ) { 498 if ( empty( $user ) || ! function_exists( 'bp_activity_add' ) )498 if ( empty( $user ) || !bp_is_active( 'activity' ) ) 499 499 return false; 500 500 -
trunk/bp-xprofile/bp-xprofile-classes.php
r4032 r4041 689 689 </div> 690 690 691 <?php if ( function_exists( 'wp_nonce_field' ) )wp_nonce_field( 'xprofile_delete_option' ); ?>691 <?php wp_nonce_field( 'xprofile_delete_option' ); ?> 692 692 693 693 </form>
Note: See TracChangeset
for help on using the changeset viewer.