Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/26/2014 03:26:55 AM (11 years ago)
Author:
imath
Message:

Adapt core to allow BP Attachments to be into the list of optional components

So that next "feature as a plugin" Attachments can be activated just like the other BuddyPress components, we need to create two new hooks.

props johnjamesjacoby, boonebgorges, imath.

See #5429

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-avatars.php

    r7943 r8160  
    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    }
Note: See TracChangeset for help on using the changeset viewer.