Skip to content

Commit

Permalink
Merge pull request #4529 from buddyboss/PROD-7420
Browse files Browse the repository at this point in the history
PROD-7420: Fix GIF disappearance issue in forum, topic, and reply actions
  • Loading branch information
KartikSuthar authored Oct 16, 2024
2 parents 1274299 + f8dbe41 commit 7ab21d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bp-media/bp-media-filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,11 @@ function bp_media_forums_save_gif_data( $post_id ) {
bp_activity_update_meta( $main_activity_id, '_gif_data', $gdata );
bp_activity_update_meta( $main_activity_id, '_gif_raw_data', $gif_data );
}
} else {
} elseif (
isset( $_POST['action'] ) &&
in_array( $_POST['action'], array( 'bbp-edit-reply', 'bbp-edit-topic', 'bbp-edit-forum' ), true ) &&
empty( $_POST['bbp_media_gif'] )
) {
delete_post_meta( $post_id, '_gif_data' );
delete_post_meta( $post_id, '_gif_raw_data' );

Expand Down

0 comments on commit 7ab21d0

Please sign in to comment.