Changeset 3259224
- Timestamp:
- 03/20/2025 03:08:27 PM (13 months ago)
- Location:
- all-in-one-wp-migration/trunk
- Files:
-
- 8 edited
-
all-in-one-wp-migration.php (modified) (1 diff)
-
constants.php (modified) (2 diffs)
-
lib/model/export/class-ai1wm-export-config.php (modified) (1 diff)
-
lib/model/export/class-ai1wm-export-enumerate-tables.php (modified) (1 diff)
-
lib/model/import/class-ai1wm-import-clean.php (modified) (1 diff)
-
lib/model/import/class-ai1wm-import-content.php (modified) (1 diff)
-
lib/model/import/class-ai1wm-import-database.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
all-in-one-wp-migration/trunk/all-in-one-wp-migration.php
r3253940 r3259224 6 6 * Author: ServMask 7 7 * Author URI: https://servmask.com/ 8 * Version: 7.9 08 * Version: 7.91 9 9 * Text Domain: all-in-one-wp-migration 10 10 * Domain Path: /languages -
all-in-one-wp-migration/trunk/constants.php
r3253940 r3259224 38 38 // = Plugin Version = 39 39 // ================== 40 define( 'AI1WM_VERSION', '7.9 0' );40 define( 'AI1WM_VERSION', '7.91' ); 41 41 42 42 // =============== … … 224 224 // ============================ 225 225 define( 'AI1WM_ELEMENTOR_CSS_NAME', 'uploads' . DIRECTORY_SEPARATOR . 'elementor' . DIRECTORY_SEPARATOR . 'css' ); 226 227 // ======================== 228 // = CiviCRM Uploads Name = 229 // ======================== 230 define( 'AI1WM_CIVICRM_UPLOADS_NAME', 'uploads' . DIRECTORY_SEPARATOR . 'civicrm' ); 226 231 227 232 // ========================= -
all-in-one-wp-migration/trunk/lib/model/export/class-ai1wm-export-config.php
r3253940 r3259224 131 131 132 132 // Set WordPress version and content 133 $config['WordPress'] = array( 'Version' => $wp_version, ' Content' => WP_CONTENT_DIR, 'Plugins' => ai1wm_get_plugins_dir(), 'Themes' => ai1wm_get_themes_dirs(), 'Uploads' => ai1wm_get_uploads_dir(), 'UploadsURL' => ai1wm_get_uploads_url() );133 $config['WordPress'] = array( 'Version' => $wp_version, 'Absolute' => ABSPATH, 'Content' => WP_CONTENT_DIR, 'Plugins' => ai1wm_get_plugins_dir(), 'Themes' => ai1wm_get_themes_dirs(), 'Uploads' => ai1wm_get_uploads_dir(), 'UploadsURL' => ai1wm_get_uploads_url() ); 134 134 135 135 // Set database version -
all-in-one-wp-migration/trunk/lib/model/export/class-ai1wm-export-enumerate-tables.php
r3253940 r3259224 55 55 $db_client->add_table_prefix_filter( ai1wm_table_prefix() ); 56 56 57 // Include table prefixes (Webba Booking )58 foreach ( array( 'wbk_ services', 'wbk_days_on_off', 'wbk_locked_time_slots', 'wbk_appointments', 'wbk_cancelled_appointments', 'wbk_email_templates', 'wbk_service_categories', 'wbk_gg_calendars', 'wbk_coupons' ) as $table_name ) {57 // Include table prefixes (Webba Booking and CiviCRM) 58 foreach ( array( 'wbk_', 'civicrm_' ) as $table_name ) { 59 59 $db_client->add_table_prefix_filter( $table_name ); 60 60 } -
all-in-one-wp-migration/trunk/lib/model/import/class-ai1wm-import-clean.php
r3253940 r3259224 40 40 $db_client->flush(); 41 41 42 // Trigger import cancel action 42 43 if ( isset( $params['ai1wm_import_cancel'] ) ) { 43 44 do_action( 'ai1wm_status_import_canceled', $params ); -
all-in-one-wp-migration/trunk/lib/model/import/class-ai1wm-import-content.php
r3253940 r3259224 188 188 $exclude_files = array_merge( $exclude_files, array( AI1WM_ELEMENTOR_CSS_NAME ) ); 189 189 190 // Exclude CiviCRM files 191 $exclude_files = array_merge( $exclude_files, array( AI1WM_CIVICRM_UPLOADS_NAME ) ); 192 190 193 // Exclude content extensions 191 194 $exclude_extensions = array( AI1WM_LESS_CACHE_EXTENSION, AI1WM_SQLITE_DATABASE_EXTENSION ); -
all-in-one-wp-migration/trunk/lib/model/import/class-ai1wm-import-database.php
r3253940 r3259224 814 814 } 815 815 816 // Get WordPress Absolute Path 817 if ( isset( $config['WordPress']['Absolute'] ) && ( $absolute_path = $config['WordPress']['Absolute'] ) ) { 818 819 // Add plain WordPress Absolute 820 if ( ! in_array( $absolute_path, $old_replace_values ) ) { 821 $old_replace_values[] = $absolute_path; 822 $new_replace_values[] = ABSPATH; 823 } 824 825 // Add URL encoded WordPress Absolute 826 if ( ! in_array( urlencode( $absolute_path ), $old_replace_values ) ) { 827 $old_replace_values[] = urlencode( $absolute_path ); 828 $new_replace_values[] = urlencode( ABSPATH ); 829 } 830 831 // Add URL raw encoded WordPress Absolute 832 if ( ! in_array( rawurlencode( $absolute_path ), $old_replace_values ) ) { 833 $old_replace_values[] = rawurlencode( $absolute_path ); 834 $new_replace_values[] = rawurlencode( ABSPATH ); 835 } 836 837 // Add JSON escaped WordPress Absolute 838 if ( ! in_array( addcslashes( $absolute_path, '/' ), $old_replace_values ) ) { 839 $old_replace_values[] = addcslashes( $absolute_path, '/' ); 840 $new_replace_values[] = addcslashes( ABSPATH, '/' ); 841 } 842 } 843 816 844 // Get WordPress Content Dir 817 845 if ( isset( $config['WordPress']['Content'] ) && ( $content_dir = $config['WordPress']['Content'] ) ) { -
all-in-one-wp-migration/trunk/readme.txt
r3253940 r3259224 5 5 Tested up to: 6.7 6 6 Requires PHP: 5.3 7 Stable tag: 7.9 07 Stable tag: 7.91 8 8 License: GPLv2 or later 9 9 … … 99 99 100 100 == Changelog == 101 = 7.91 = 102 **Added** 103 104 * CiviCRM for WordPress support 105 101 106 = 7.90 = 102 107 **Added**
Note: See TracChangeset
for help on using the changeset viewer.