Skip to:
Content

BuddyPress.org

Ticket #5429: 5429.01.diff

File 5429.01.diff, 1.8 KB (added by imath, 9 years ago)
  • bp-core/admin/bp-core-components.php

     
    358358        );
    359359
    360360        // Optional core components
    361         $optional_components = array(
     361        $optional_components = apply_filters( 'bp_core_admin_get_optional_components', array(
    362362                'xprofile' => array(
    363363                        'title'       => __( 'Extended Profiles', 'buddypress' ),
    364364                        'description' => __( 'Customize your community with fully editable profile fields that allow your users to describe themselves.', 'buddypress' )
     
    395395                        'title'       => __( 'Site Tracking', 'buddypress' ),
    396396                        'description' => __( 'Record activity for new posts and comments from your site.', 'buddypress' )
    397397                )
    398         );
     398        ) );
    399399
    400400
    401401        // Add blogs tracking if multisite
  • bp-core/bp-core-avatars.php

     
    764764                $new_avatar_path      = str_replace( $upload_dir['basedir'], '', $original_file );
    765765
    766766                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 ) );
    768768                }
    769769        }
    770770
  • bp-core/bp-core-loader.php

     
    108108                        }
    109109                }
    110110
     111                do_action( 'bp_core_components_included', $bp->active_components );
     112
    111113                // Add Core to required components
    112114                $bp->required_components[] = 'core';
    113115        }