Changeset 7136
- Timestamp:
- 08/14/2020 05:53:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/src/includes/topics/functions.php
r7123 r7136 2502 2502 } 2503 2503 2504 $forum_id = (int) $forum_id; 2505 2506 update_post_meta( $topic_id, '_bbp_forum_id', $forum_id ); 2504 // Update the forum ID 2505 $forum_id = bbp_update_forum_id( $topic_id, $forum_id ); 2507 2506 2508 2507 // Filter & return … … 2520 2519 function bbp_update_topic_topic_id( $topic_id = 0 ) { 2521 2520 $topic_id = bbp_get_topic_id( $topic_id ); 2522 2523 update_post_meta( $topic_id, '_bbp_topic_id', $topic_id ); 2521 $topic_id = bbp_update_topic_id( $topic_id, $topic_id ); 2524 2522 2525 2523 // Filter & return 2526 return apply_filters( 'bbp_update_topic_topic_id', $topic_id );2524 return (int) apply_filters( 'bbp_update_topic_topic_id', $topic_id ); 2527 2525 } 2528 2526
Note: See TracChangeset
for help on using the changeset viewer.