Skip to:
Content

bbPress.org

Ticket #2439: 2439.diff

File 2439.diff, 1.2 KB (added by netweb, 12 years ago)
  • includes/admin/converter.php

    diff --git a/includes/admin/converter.php b/includes/admin/converter.php
    index fe1d59f..2588109 100644
    a b abstract class BBP_Converter_Base { 
    12481248        private function callback_reply_to( $field ) {
    12491249                if ( !isset( $this->map_reply_to[$field] ) ) {
    12501250                        if ( !empty( $this->sync_table ) ) {
    1251                                 $row = $this->wpdb->get_row( $this->wpdb->prepare( 'SELECT value_id, meta_value FROM ' . $this->sync_table_name . ' WHERE meta_key = "_bbp_reply_to" AND meta_value = "%s" LIMIT 1', $field ) );
     1251                                $row = $this->wpdb->get_row( $this->wpdb->prepare( 'SELECT value_id, meta_value FROM ' . $this->sync_table_name . ' WHERE meta_key = "_bbp_post_id" AND meta_value = "%s" LIMIT 1', $field ) );
    12521252                        } else {
    1253                                 $row = $this->wpdb->get_row( $this->wpdb->prepare( 'SELECT post_id AS value_id FROM ' . $this->wpdb->postmeta . ' WHERE meta_key = "_bbp_reply_to" AND meta_value = "%s" LIMIT 1', $field ) );
     1253                                $row = $this->wpdb->get_row( $this->wpdb->prepare( 'SELECT post_id AS value_id FROM ' . $this->wpdb->postmeta . ' WHERE meta_key = "_bbp_post_id" AND meta_value = "%s" LIMIT 1', $field ) );
    12541254                        }
    12551255
    12561256                        if ( !is_null( $row ) ) {