Plugin Directory

Changeset 3259224


Ignore:
Timestamp:
03/20/2025 03:08:27 PM (13 months ago)
Author:
bangelov
Message:

Adding v7.91 to trunk

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

Legend:

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

    r3253940 r3259224  
    66 * Author: ServMask
    77 * Author URI: https://servmask.com/
    8  * Version: 7.90
     8 * Version: 7.91
    99 * Text Domain: all-in-one-wp-migration
    1010 * Domain Path: /languages
  • all-in-one-wp-migration/trunk/constants.php

    r3253940 r3259224  
    3838// = Plugin Version =
    3939// ==================
    40 define( 'AI1WM_VERSION', '7.90' );
     40define( 'AI1WM_VERSION', '7.91' );
    4141
    4242// ===============
     
    224224// ============================
    225225define( 'AI1WM_ELEMENTOR_CSS_NAME', 'uploads' . DIRECTORY_SEPARATOR . 'elementor' . DIRECTORY_SEPARATOR . 'css' );
     226
     227// ========================
     228// = CiviCRM Uploads Name =
     229// ========================
     230define( 'AI1WM_CIVICRM_UPLOADS_NAME', 'uploads' . DIRECTORY_SEPARATOR . 'civicrm' );
    226231
    227232// =========================
  • all-in-one-wp-migration/trunk/lib/model/export/class-ai1wm-export-config.php

    r3253940 r3259224  
    131131
    132132        // 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() );
    134134
    135135        // Set database version
  • all-in-one-wp-migration/trunk/lib/model/export/class-ai1wm-export-enumerate-tables.php

    r3253940 r3259224  
    5555            $db_client->add_table_prefix_filter( ai1wm_table_prefix() );
    5656
    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 ) {
    5959                $db_client->add_table_prefix_filter( $table_name );
    6060            }
  • all-in-one-wp-migration/trunk/lib/model/import/class-ai1wm-import-clean.php

    r3253940 r3259224  
    4040        $db_client->flush();
    4141
     42        // Trigger import cancel action
    4243        if ( isset( $params['ai1wm_import_cancel'] ) ) {
    4344            do_action( 'ai1wm_status_import_canceled', $params );
  • all-in-one-wp-migration/trunk/lib/model/import/class-ai1wm-import-content.php

    r3253940 r3259224  
    188188            $exclude_files = array_merge( $exclude_files, array( AI1WM_ELEMENTOR_CSS_NAME ) );
    189189
     190            // Exclude CiviCRM files
     191            $exclude_files = array_merge( $exclude_files, array( AI1WM_CIVICRM_UPLOADS_NAME ) );
     192
    190193            // Exclude content extensions
    191194            $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  
    814814        }
    815815
     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
    816844        // Get WordPress Content Dir
    817845        if ( isset( $config['WordPress']['Content'] ) && ( $content_dir = $config['WordPress']['Content'] ) ) {
  • all-in-one-wp-migration/trunk/readme.txt

    r3253940 r3259224  
    55Tested up to: 6.7
    66Requires PHP: 5.3
    7 Stable tag: 7.90
     7Stable tag: 7.91
    88License: GPLv2 or later
    99
     
    9999
    100100== Changelog ==
     101= 7.91 =
     102**Added**
     103
     104* CiviCRM for WordPress support
     105
    101106= 7.90 =
    102107**Added**
Note: See TracChangeset for help on using the changeset viewer.