Plugin Directory

Changeset 3134241


Ignore:
Timestamp:
08/12/2024 01:39:26 PM (20 months ago)
Author:
bangelov
Message:

Adding v7.85 to trunk

Location:
all-in-one-wp-migration/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • all-in-one-wp-migration/trunk/all-in-one-wp-migration.php

    r3112499 r3134241  
    66 * Author: ServMask
    77 * Author URI: https://servmask.com/
    8  * Version: 7.84
     8 * Version: 7.85
    99 * Text Domain: all-in-one-wp-migration
    1010 * Domain Path: /languages
  • all-in-one-wp-migration/trunk/constants.php

    r3112499 r3134241  
    3636// = Plugin Version =
    3737// ==================
    38 define( 'AI1WM_VERSION', '7.84' );
     38define( 'AI1WM_VERSION', '7.85' );
    3939
    4040// ===============
  • all-in-one-wp-migration/trunk/lib/model/export/class-ai1wm-export-enumerate-tables.php

    r3089446 r3134241  
    3030class Ai1wm_Export_Enumerate_Tables {
    3131
    32     public static function execute( $params, Ai1wm_Database $db_client = null ) {
     32    public static function execute( $params ) {
    3333        // Set exclude database
    3434        if ( isset( $params['options']['no_database'] ) ) {
     
    4747
    4848        // Get database client
    49         if ( is_null( $db_client ) ) {
    50             $db_client = Ai1wm_Database_Utility::create_client();
    51         }
     49        $db_client = Ai1wm_Database_Utility::create_client();
    5250
    5351        // Include table prefixes
  • all-in-one-wp-migration/trunk/lib/model/import/class-ai1wm-import-database.php

    r3089446 r3134241  
    3030class Ai1wm_Import_Database {
    3131
    32     public static function execute( $params, Ai1wm_Database $db_client = null ) {
     32    public static function execute( $params ) {
    3333        global $wpdb;
    3434
     
    948948
    949949        // Get database client
    950         if ( is_null( $db_client ) ) {
    951             $db_client = Ai1wm_Database_Utility::create_client();
    952         }
     950        $db_client = Ai1wm_Database_Utility::create_client();
    953951
    954952        // Set database options
  • all-in-one-wp-migration/trunk/lib/model/import/class-ai1wm-import-options.php

    r3089446 r3134241  
    3030class Ai1wm_Import_Options {
    3131
    32     public static function execute( $params, Ai1wm_Database $db_client = null ) {
     32    public static function execute( $params ) {
    3333        // Set progress
    3434        Ai1wm_Status::info( __( 'Preparing options...', AI1WM_PLUGIN_NAME ) );
    3535
    3636        // Get database client
    37         if ( is_null( $db_client ) ) {
    38             $db_client = Ai1wm_Database_Utility::create_client();
    39         }
     37        $db_client = Ai1wm_Database_Utility::create_client();
    4038
    4139        $tables = $db_client->get_tables();
  • all-in-one-wp-migration/trunk/lib/vendor/servmask/database/class-ai1wm-database-utility.php

    r3089446 r3134241  
    3030class Ai1wm_Database_Utility {
    3131
     32    protected static $db_client = null;
     33
     34    public static function set_client( $db_client ) {
     35        static::$db_client = $db_client;
     36    }
     37
    3238    /**
    3339     * Get MySQLClient to be used for DB manipulation
     
    3844        global $wpdb;
    3945
     46        if ( static::$db_client ) {
     47            return static::$db_client;
     48        }
     49
    4050        if ( $wpdb instanceof WP_SQLite_DB ) {
    41             return new Ai1wm_Database_Sqlite( $wpdb );
     51            return static::$db_client = new Ai1wm_Database_Sqlite( $wpdb );
    4252        }
    4353
    4454        if ( PHP_MAJOR_VERSION >= 7 ) {
    45             return new Ai1wm_Database_Mysqli( $wpdb );
     55            return static::$db_client = new Ai1wm_Database_Mysqli( $wpdb );
    4656        }
    4757
    4858        if ( empty( $wpdb->use_mysqli ) ) {
    49             return new Ai1wm_Database_Mysql( $wpdb );
     59            return static::$db_client = new Ai1wm_Database_Mysql( $wpdb );
    5060        }
    5161
    52         return new Ai1wm_Database_Mysqli( $wpdb );
     62        return static::$db_client = new Ai1wm_Database_Mysqli( $wpdb );
    5363    }
    5464
  • all-in-one-wp-migration/trunk/readme.txt

    r3112499 r3134241  
    55Tested up to: 6.6
    66Requires PHP: 5.3
    7 Stable tag: 7.84
     7Stable tag: 7.85
    88License: GPLv2 or later
    99
     
    9898
    9999== Changelog ==
     100= 7.85 =
     101**Added**
     102
     103* PHP 8.4 compatibility
     104
    100105= 7.84 =
    101106**Added**
Note: See TracChangeset for help on using the changeset viewer.