Skip to:
Content

bbPress.org


Ignore:
Timestamp:
02/19/2018 07:00:55 AM (7 years ago)
Author:
johnjamesjacoby
Message:

Converter: remove WP_SETUP_CONFIG constant setting from converter process.

This introduces a helper database class to avoid directly connecting to the external database. Instead, we'll attempt to control that connection, and provide feedback to the user in the event a connection cannot be made. The WP_SETUP_CONFIG was causing calls to the options API to fail, resulting in broken calculations and invalid offsets.

This commit includes some general load order clean-up, which also fixes a regression causing fatal errors when attempting to upgrade converted user passwords from the old platform. It also fixes the condition where boundaries being converted would display beyond their maximums.

Fixes #3191.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/abstraction.php

    r6768 r6785  
    6060    if ( empty( $bbp_admin->converter ) ) {
    6161
    62         // Require the converter classes
     62        // Require the converter files
     63        require_once $bbp_admin->admin_dir . 'tools/converter.php';
     64        require_once $bbp_admin->admin_dir . 'classes/class-bbp-converter.php';
     65        require_once $bbp_admin->admin_dir . 'classes/class-bbp-converter-db.php';
    6366        require_once $bbp_admin->admin_dir . 'classes/class-bbp-converter-base.php';
    64         require_once $bbp_admin->admin_dir . 'classes/class-bbp-converter.php';
    6567
    6668        // Setup
Note: See TracChangeset for help on using the changeset viewer.