diff --git bp-core/admin/bp-core-components.php bp-core/admin/bp-core-components.php
index bca1c39..c5343b4 100644
|
|
|
function bp_core_admin_get_components( $type = 'all' ) { |
| 358 | 358 | ); |
| 359 | 359 | |
| 360 | 360 | // Optional core components |
| 361 | | $optional_components = array( |
| | 361 | $optional_components = apply_filters( 'bp_core_admin_get_optional_components', array( |
| 362 | 362 | 'xprofile' => array( |
| 363 | 363 | 'title' => __( 'Extended Profiles', 'buddypress' ), |
| 364 | 364 | 'description' => __( 'Customize your community with fully editable profile fields that allow your users to describe themselves.', 'buddypress' ) |
| … |
… |
function bp_core_admin_get_components( $type = 'all' ) { |
| 395 | 395 | 'title' => __( 'Site Tracking', 'buddypress' ), |
| 396 | 396 | 'description' => __( 'Record activity for new posts and comments from your site.', 'buddypress' ) |
| 397 | 397 | ) |
| 398 | | ); |
| | 398 | ) ); |
| 399 | 399 | |
| 400 | 400 | |
| 401 | 401 | // Add blogs tracking if multisite |
diff --git bp-core/admin/css/common.css bp-core/admin/css/common.css
index 17548ec..402e3eb 100644
|
|
|
body.branch-3-7 #adminmenu li.toplevel_page_bp-general-settings .wp-menu-image { |
| 222 | 222 | content: "\f454"; |
| 223 | 223 | } |
| 224 | 224 | |
| | 225 | .settings_page_bp-components tr.attachments td.plugin-title span:before { |
| | 226 | content: "\f128"; |
| | 227 | } |
| | 228 | |
| 225 | 229 | /* Settings - Legacy (< WP 3.8) */ |
| 226 | 230 | body.branch-3-6.settings_page_bp-components tr.activity td.plugin-title span:before, |
| 227 | 231 | body.branch-3-6.settings_page_bp-components tr.notifications td.plugin-title span:before, |
diff --git bp-core/bp-core-avatars.php bp-core/bp-core-avatars.php
index a6e638f..d7f6074 100644
|
|
|
function bp_core_avatar_handle_crop( $args = '' ) { |
| 764 | 764 | $new_avatar_path = str_replace( $upload_dir['basedir'], '', $original_file ); |
| 765 | 765 | |
| 766 | 766 | if ( $existing_avatar_path !== $new_avatar_path ) { |
| 767 | | bp_core_delete_existing_avatar( array( 'object' => $object, 'avatar_path' => $avatar_folder_dir ) ); |
| | 767 | bp_core_delete_existing_avatar( array( 'object' => $object, 'item_id' => $item_id,'avatar_path' => $avatar_folder_dir ) ); |
| 768 | 768 | } |
| 769 | 769 | } |
| 770 | 770 | |
diff --git bp-core/bp-core-caps.php bp-core/bp-core-caps.php
index 2ed693d..1f3defb 100644
|
|
|
function bp_current_user_can( $capability, $blog_id = 0 ) { |
| 191 | 191 | if ( empty( $blog_id ) ) |
| 192 | 192 | $blog_id = bp_get_root_blog_id(); |
| 193 | 193 | |
| 194 | | $retval = current_user_can_for_blog( $blog_id, $capability ); |
| | 194 | $args = array_slice( func_get_args(), 2 ); |
| | 195 | $args = array_merge( array( $blog_id, $capability ), $args ); |
| | 196 | |
| | 197 | $retval = call_user_func_array( 'current_user_can_for_blog', $args ); |
| 195 | 198 | |
| 196 | 199 | return (bool) apply_filters( 'bp_current_user_can', $retval, $capability, $blog_id ); |
| 197 | 200 | } |
diff --git bp-core/bp-core-loader.php bp-core/bp-core-loader.php
index 7dd0f51..e99db91 100644
|
|
|
class BP_Core extends BP_Component { |
| 108 | 108 | } |
| 109 | 109 | } |
| 110 | 110 | |
| | 111 | do_action( 'bp_core_components_included', $bp->active_components ); |
| | 112 | |
| 111 | 113 | // Add Core to required components |
| 112 | 114 | $bp->required_components[] = 'core'; |
| 113 | 115 | } |