Changeset 3134241
- Timestamp:
- 08/12/2024 01:39:26 PM (20 months ago)
- Location:
- all-in-one-wp-migration/trunk
- Files:
-
- 7 edited
-
all-in-one-wp-migration.php (modified) (1 diff)
-
constants.php (modified) (1 diff)
-
lib/model/export/class-ai1wm-export-enumerate-tables.php (modified) (2 diffs)
-
lib/model/import/class-ai1wm-import-database.php (modified) (2 diffs)
-
lib/model/import/class-ai1wm-import-options.php (modified) (1 diff)
-
lib/vendor/servmask/database/class-ai1wm-database-utility.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
all-in-one-wp-migration/trunk/all-in-one-wp-migration.php
r3112499 r3134241 6 6 * Author: ServMask 7 7 * Author URI: https://servmask.com/ 8 * Version: 7.8 48 * Version: 7.85 9 9 * Text Domain: all-in-one-wp-migration 10 10 * Domain Path: /languages -
all-in-one-wp-migration/trunk/constants.php
r3112499 r3134241 36 36 // = Plugin Version = 37 37 // ================== 38 define( 'AI1WM_VERSION', '7.8 4' );38 define( 'AI1WM_VERSION', '7.85' ); 39 39 40 40 // =============== -
all-in-one-wp-migration/trunk/lib/model/export/class-ai1wm-export-enumerate-tables.php
r3089446 r3134241 30 30 class Ai1wm_Export_Enumerate_Tables { 31 31 32 public static function execute( $params , Ai1wm_Database $db_client = null) {32 public static function execute( $params ) { 33 33 // Set exclude database 34 34 if ( isset( $params['options']['no_database'] ) ) { … … 47 47 48 48 // 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(); 52 50 53 51 // Include table prefixes -
all-in-one-wp-migration/trunk/lib/model/import/class-ai1wm-import-database.php
r3089446 r3134241 30 30 class Ai1wm_Import_Database { 31 31 32 public static function execute( $params , Ai1wm_Database $db_client = null) {32 public static function execute( $params ) { 33 33 global $wpdb; 34 34 … … 948 948 949 949 // 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(); 953 951 954 952 // Set database options -
all-in-one-wp-migration/trunk/lib/model/import/class-ai1wm-import-options.php
r3089446 r3134241 30 30 class Ai1wm_Import_Options { 31 31 32 public static function execute( $params , Ai1wm_Database $db_client = null) {32 public static function execute( $params ) { 33 33 // Set progress 34 34 Ai1wm_Status::info( __( 'Preparing options...', AI1WM_PLUGIN_NAME ) ); 35 35 36 36 // 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(); 40 38 41 39 $tables = $db_client->get_tables(); -
all-in-one-wp-migration/trunk/lib/vendor/servmask/database/class-ai1wm-database-utility.php
r3089446 r3134241 30 30 class Ai1wm_Database_Utility { 31 31 32 protected static $db_client = null; 33 34 public static function set_client( $db_client ) { 35 static::$db_client = $db_client; 36 } 37 32 38 /** 33 39 * Get MySQLClient to be used for DB manipulation … … 38 44 global $wpdb; 39 45 46 if ( static::$db_client ) { 47 return static::$db_client; 48 } 49 40 50 if ( $wpdb instanceof WP_SQLite_DB ) { 41 return new Ai1wm_Database_Sqlite( $wpdb );51 return static::$db_client = new Ai1wm_Database_Sqlite( $wpdb ); 42 52 } 43 53 44 54 if ( PHP_MAJOR_VERSION >= 7 ) { 45 return new Ai1wm_Database_Mysqli( $wpdb );55 return static::$db_client = new Ai1wm_Database_Mysqli( $wpdb ); 46 56 } 47 57 48 58 if ( empty( $wpdb->use_mysqli ) ) { 49 return new Ai1wm_Database_Mysql( $wpdb );59 return static::$db_client = new Ai1wm_Database_Mysql( $wpdb ); 50 60 } 51 61 52 return new Ai1wm_Database_Mysqli( $wpdb );62 return static::$db_client = new Ai1wm_Database_Mysqli( $wpdb ); 53 63 } 54 64 -
all-in-one-wp-migration/trunk/readme.txt
r3112499 r3134241 5 5 Tested up to: 6.6 6 6 Requires PHP: 5.3 7 Stable tag: 7.8 47 Stable tag: 7.85 8 8 License: GPLv2 or later 9 9 … … 98 98 99 99 == Changelog == 100 = 7.85 = 101 **Added** 102 103 * PHP 8.4 compatibility 104 100 105 = 7.84 = 101 106 **Added**
Note: See TracChangeset
for help on using the changeset viewer.