Changeset 6477 for trunk/src/includes/topics/functions.php
- Timestamp:
- 06/04/2017 08:53:43 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/topics/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r6450 r6477 39 39 'post_title' => '', 40 40 'comment_status' => 'closed', 41 'menu_order' => 0 ,41 'menu_order' => 0 42 42 ), 'insert_topic' ); 43 43 … … 60 60 'last_reply_id' => 0, 61 61 'last_active_id' => $topic_id, 62 'last_active_time' => get_post_field( 'post_date', $topic_id, 'db' ) ,62 'last_active_time' => get_post_field( 'post_date', $topic_id, 'db' ) 63 63 ), 'insert_topic_meta' ); 64 64 65 65 // Insert topic meta 66 66 foreach ( $topic_meta as $meta_key => $meta_value ) { 67 update_post_meta( $topic_id, '_bbp_' . $meta_key, $meta_value ); 67 68 // Prefix if not prefixed 69 if ( '_bbp_' !== substr( $meta_key, 0, 5 ) ) { 70 $meta_key = '_bbp_' . $meta_key; 71 } 72 73 // Update the meta 74 update_post_meta( $topic_id, $meta_key, $meta_value ); 68 75 } 69 76
Note: See TracChangeset
for help on using the changeset viewer.