diff --git bp-core/admin/bp-core-components.php bp-core/admin/bp-core-components.php
index bca1c39..96f9e39 100644
|
|
function bp_core_admin_get_components( $type = 'all' ) { |
420 | 420 | |
421 | 421 | } |
422 | 422 | |
423 | | return $components; |
| 423 | return apply_filters( 'bp_core_admin_get_components', $components, $type ); |
424 | 424 | } |
diff --git bp-core/bp-core-avatars.php bp-core/bp-core-avatars.php
index a6e638f..bbff387 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-loader.php bp-core/bp-core-loader.php
index 7dd0f51..29affc3 100644
|
|
class BP_Core extends BP_Component { |
110 | 110 | |
111 | 111 | // Add Core to required components |
112 | 112 | $bp->required_components[] = 'core'; |
| 113 | |
| 114 | do_action( 'bp_core_components_included' ); |
113 | 115 | } |
114 | 116 | |
115 | 117 | /** |