Changeset 3125 for branches/plugin/bbp-includes/bbp-topic-template.php
- Timestamp:
- 05/09/2011 06:51:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-topic-template.php
r3113 r3125 1265 1265 $forum_id = get_post_meta( $topic_id, '_bbp_forum_id', true ); 1266 1266 1267 // Fallback to post_parent if no meta exists, and set post meta1268 if ( '' === $forum_id ) {1269 $forum_id = get_post_field( 'post_parent', $topic_id );1270 bbp_update_topic_forum_id( $topic_id, $forum_id );1271 }1272 1273 1267 return apply_filters( 'bbp_get_topic_forum_id', (int) $forum_id, $topic_id ); 1274 1268 }
Note: See TracChangeset
for help on using the changeset viewer.