Ticket #7371: 7371-3.patch
| File 7371-3.patch, 1.7 KB (added by , 10 years ago) |
|---|
-
bp-core/bp-core-avatars.php
1352 1352 * 1353 1353 * @param string $item_id Inform about the user id the avatar was set for 1354 1354 * @param string $type Inform about the way the avatar was set ('crop') 1355 * @param array Array of all info related to avatar 1355 1356 */ 1356 do_action( 'xprofile_avatar_uploaded', (int) $avatar_data['item_id'], $avatar_data['type'] ); 1357 do_action( 'xprofile_avatar_uploaded', (int) $avatar_data['item_id'], $avatar_data['type'], $r ); 1358 } elseif ( 'group' === $avatar_data['object'] ) { 1359 /** This action is documented in bp-groups/bp-groups-screens.php */ 1360 do_action( 'groups_avatar_uploaded', (int) $avatar_data['item_id'], $atavar_data['type'], $r ); 1357 1361 } 1358 1362 1359 1363 wp_send_json_success( $return ); -
bp-groups/bp-groups-screens.php
1065 1065 if ( !bp_core_avatar_handle_crop( $args ) ) { 1066 1066 bp_core_add_message( __( 'There was a problem cropping the group profile photo.', 'buddypress' ), 'error' ); 1067 1067 } else { 1068 /** 1069 * Fires after a group avatar is uploaded. 1070 * 1071 * @since 2.8.0 1072 * 1073 * @param int $group_id ID of the group. 1074 * @param string $type Avatar type. 'crop' or 'full'. 1075 * @param array Array of all info related to avatar 1076 */ 1077 do_action( 'groups_avatar_uploaded', bp_get_current_group_id(), 'crop', $args ); 1068 1078 bp_core_add_message( __( 'The new group profile photo was uploaded successfully.', 'buddypress' ) ); 1069 1079 } 1070 1080 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)