Changeset 5775 for trunk/src/includes/replies/functions.php
- Timestamp:
- 05/21/2015 09:57:32 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r5770 r5775 43 43 44 44 // Insert reply 45 $reply_id 45 $reply_id = wp_insert_post( $reply_data ); 46 46 47 47 // Bail if no reply was added … … 55 55 'forum_id' => 0, 56 56 'topic_id' => 0, 57 'reply_to' => 0 57 58 ), 'insert_reply_meta' ); 58 59 … … 62 63 } 63 64 64 // Update the topic 65 $topic_id = bbp_get_reply_topic_id( $reply_id ); 66 if ( !empty( $topic_id ) ) { 67 bbp_update_topic( $topic_id ); 68 } 65 // Update the reply and hierarchy 66 bbp_update_reply( $reply_id, $reply_meta['topic_id'], $reply_meta['forum_id'], array(), $reply_data['post_author'], false, $reply_meta['reply_to'] ); 69 67 70 68 // Return new reply ID
Note: See TracChangeset
for help on using the changeset viewer.