Skip to:
Content

BuddyPress.org

Ticket #5429: 5429.02.diff

File 5429.02.diff, 1.3 KB (added by boonebgorges, 6 years ago)
  • bp-core/admin/bp-core-components.php

    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' ) { 
    420420
    421421        }
    422422
    423         return $components;
     423        return apply_filters( 'bp_core_admin_get_components', $components, $type );
    424424}
  • bp-core/bp-core-avatars.php

    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 = '' ) { 
    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

    diff --git bp-core/bp-core-loader.php bp-core/bp-core-loader.php
    index 7dd0f51..29affc3 100644
    class BP_Core extends BP_Component { 
    110110
    111111                // Add Core to required components
    112112                $bp->required_components[] = 'core';
     113
     114                do_action( 'bp_core_components_included' );
    113115        }
    114116
    115117        /**