Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/07/2014 03:26:49 PM (11 years ago)
Author:
netweb
Message:

Updated forum parent ID importing method for compatibility when wp_bbconverter_translator database sync_table exists.

  • Renamed forum parent meta key _bbp_forum_parent_id to _bbp_old_forum_parent_id for importers that support forum parents
  • Improvements for future iterations of post import meta data manipulation/enhancements with reference only imported post meta keys including a common _old prefix as part of the _bbp prefix

See #2650

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/converter.php

    r5427 r5428  
    10621062
    10631063        if ( !empty( $this->sync_table ) ) {
    1064             $query = 'SELECT value_id, meta_value FROM ' . $this->sync_table_name . ' WHERE meta_key = "_bbp_forum_parent_id" AND meta_value > 0 LIMIT ' . $start . ', ' . $this->max_rows;
     1064            $query = 'SELECT value_id, meta_value FROM '            . $this->sync_table_name . ' WHERE meta_key = "_bbp_old_forum_parent_id" AND meta_value > 0 LIMIT ' . $start . ', ' . $this->max_rows;
    10651065        } else {
    1066             $query = 'SELECT post_id AS value_id, meta_value FROM ' . $this->wpdb->postmeta . ' WHERE meta_key = "_bbp_forum_parent_id" AND meta_value > 0 LIMIT ' . $start . ', ' . $this->max_rows;
     1066            $query = 'SELECT post_id AS value_id, meta_value FROM ' . $this->wpdb->postmeta  . ' WHERE meta_key = "_bbp_old_forum_parent_id" AND meta_value > 0 LIMIT ' . $start . ', ' . $this->max_rows;
    10671067        }
    10681068
Note: See TracChangeset for help on using the changeset viewer.