Ticket #2529: 2529.7.diff
File 2529.7.diff, 1.1 KB (added by , 9 years ago) |
---|
-
src/includes/replies/functions.php
929 929 930 930 // Make every effort to get topic id 931 931 // https://bbpress.trac.wordpress.org/ticket/2529 932 if ( empty( $topic_id ) && ( current_ action() === 'bbp_deleted_reply' ) ) {932 if ( empty( $topic_id ) && ( current_filter() === 'bbp_deleted_reply' ) ) { 933 933 $topic_id = get_post_field( 'post_parent', $reply_id ); 934 934 } 935 935 } -
src/includes/topics/functions.php
964 964 965 965 // Make every effort to get forum id 966 966 // https://bbpress.trac.wordpress.org/ticket/2529 967 if ( empty( $forum_id ) && ( current_ action() === 'bbp_deleted_topic' ) ) {967 if ( empty( $forum_id ) && ( current_filter() === 'bbp_deleted_topic' ) ) { 968 968 $forum_id = get_post_field( 'post_parent', $topic_id ); 969 969 } 970 970 }