diff --git src/includes/replies/functions.php src/includes/replies/functions.php
index ad32198..543f47a 100644
|
|
|
function bbp_update_reply_walker( $reply_id, $last_active_time = '', $forum_id = |
| 938 | 938 | // Get the topic ID if none was passed |
| 939 | 939 | if ( empty( $topic_id ) ) { |
| 940 | 940 | $topic_id = bbp_get_reply_topic_id( $reply_id ); |
| | 941 | |
| | 942 | // Make every effort to get topic id |
| | 943 | if ( empty( $topic_id ) ) { |
| | 944 | $topic_id = get_post_field( 'post_parent', $reply_id ); |
| | 945 | } |
| 941 | 946 | } |
| 942 | 947 | |
| 943 | 948 | // Get the forum ID if none was passed |
| 944 | 949 | if ( empty( $forum_id ) ) { |
| 945 | 950 | $forum_id = bbp_get_reply_forum_id( $reply_id ); |
| | 951 | |
| | 952 | // Make every effort to get forum id |
| | 953 | if ( empty( $forum_id ) ) { |
| | 954 | $forum_id = bbp_get_topic_forum_id( $topic_id ) ); |
| | 955 | } |
| 946 | 956 | } |
| 947 | 957 | } |
| 948 | 958 | |