Changeset 5775 for trunk/src/includes/topics/functions.php
- Timestamp:
- 05/21/2015 09:57:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r5770 r5775 43 43 44 44 // Insert topic 45 $topic_id 45 $topic_id = wp_insert_post( $topic_data ); 46 46 47 47 // Bail if no topic was added … … 68 68 } 69 69 70 // Update the forum 71 $forum_id = bbp_get_topic_forum_id( $topic_id ); 72 if ( ! empty( $forum_id ) ) { 73 bbp_update_forum( array( 'forum_id' => $forum_id ) ); 74 } 70 // Update the topic and hierarchy 71 bbp_update_topic( $topic_id, $topic_meta['forum_id'], array(), $topic_data['author_id'], false ); 75 72 76 73 // Return new topic ID
Note: See TracChangeset
for help on using the changeset viewer.