Changeset 5924 for trunk/src/includes/replies/functions.php
- Timestamp:
- 08/16/2015 12:42:10 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r5893 r5924 1093 1093 foreach ( $ancestors as $ancestor ) { 1094 1094 1095 // Get first parent that is a forum1095 // Get first parent that is a topic 1096 1096 if ( get_post_field( 'post_type', $ancestor ) === bbp_get_topic_post_type() ) { 1097 1097 $topic_id = $ancestor; 1098 1098 1099 // Found a forum, so exit the loop and continue1099 // Found a topic, so exit the loop and continue 1100 1100 continue; 1101 1101 } … … 1107 1107 $topic_id = bbp_update_topic_id( $reply_id, $topic_id ); 1108 1108 1109 return apply_filters( 'bbp_update_reply_topic_id', $topic_id, $reply_id );1109 return (int) apply_filters( 'bbp_update_reply_topic_id', $topic_id, $reply_id ); 1110 1110 } 1111 1111
Note: See TracChangeset
for help on using the changeset viewer.