Skip to:
Content

bbPress.org

Changeset 5108


Ignore:
Timestamp:
09/27/2013 06:39:39 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Use correct '_bbp_post_id' meta_key in converter callback_reply_to. Fixes incorrect mapping of converted hierarchical replies. Props netweb. Fixes #2439. (2.4.1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/includes/admin/converter.php

    r5103 r5108  
    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
Note: See TracChangeset for help on using the changeset viewer.