Changeset 5527
- Timestamp:
- 09/20/2014 03:06:52 AM (10 years ago)
- Location:
- trunk/src/includes/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/converter.php
r5525 r5527 1036 1036 * _bbp_topic_id // The new topic ID 1037 1037 * _bbp_old_reply_id // The old reply ID 1038 * _bbp_old_reply_to_id // The old reply to ID 1038 1039 */ 1039 1040 if ( '_id' == substr( $key, -3 ) && ( true === $this->sync_table ) ) { … … 1041 1042 } 1042 1043 1043 // Replies need to save their old reply_to ID for hierarchical replies association 1044 if ( ( 'reply' == $to_type ) && ( '_bbp_reply_to' == $key ) ) { 1045 add_post_meta( $post_id, '_bbp_old_reply_to', $value ); 1044 /** 1045 * Replies need to save their old reply_to ID for 1046 * hierarchical replies association. Later we update 1047 * the _bbp_reply_to value with the new bbPress 1048 * value using convert_reply_to_parents() 1049 */ 1050 if ( ( 'reply' == $to_type ) && ( '_bbp_old_reply_to_id' == $key ) ) { 1051 add_post_meta( $post_id, '_bbp_reply_to', $value ); 1046 1052 } 1047 1053 } … … 1187 1193 1188 1194 if ( !empty( $this->sync_table ) ) { 1189 $query = 'SELECT value_id, meta_value FROM ' . $this->sync_table_name . ' WHERE meta_key = "_bbp_old_reply_to " AND meta_value > 0 LIMIT ' . $start . ', ' . $this->max_rows;1195 $query = 'SELECT value_id, meta_value FROM ' . $this->sync_table_name . ' WHERE meta_key = "_bbp_old_reply_to_id" AND meta_value > 0 LIMIT ' . $start . ', ' . $this->max_rows; 1190 1196 } else { 1191 $query = 'SELECT post_id AS value_id, meta_value FROM ' . $this->wpdb->postmeta . ' WHERE meta_key = "_bbp_old_reply_to " AND meta_value > 0 LIMIT ' . $start . ', ' . $this->max_rows;1197 $query = 'SELECT post_id AS value_id, meta_value FROM ' . $this->wpdb->postmeta . ' WHERE meta_key = "_bbp_old_reply_to_id" AND meta_value > 0 LIMIT ' . $start . ', ' . $this->max_rows; 1192 1198 } 1193 1199 -
trunk/src/includes/admin/converters/Drupal7.php
r5526 r5527 349 349 'from_fieldname' => 'pid', 350 350 'to_type' => 'reply', 351 'to_fieldname' => '_bbp_ reply_to'351 'to_fieldname' => '_bbp_old_reply_to_id' 352 352 ); 353 353
Note: See TracChangeset
for help on using the changeset viewer.