Plugin Directory

Changeset 3398027


Ignore:
Timestamp:
11/18/2025 12:04:48 PM (5 months ago)
Author:
silversh
Message:
  • Fix post type: page redirect not working properly
  • Auto hide overlay on fail, error, or stopped import
  • Fix Undefined variable $total_items on Redirect Log page
Location:
btw-importer
Files:
17 added
6 edited

Legend:

Unmodified
Added
Removed
  • btw-importer/trunk/btw-importer.js

    r3359514 r3398027  
    3535                    $('#progress').append('<br>❌ ' + escapeHtml(response.data));
    3636                    isImporting = false; // stop on error
     37                    $('#importOverlay').hide();
    3738                    return;
    3839                }
     
    4243                    $('#progress').append('<br>⚠ No posts/pages found.');
    4344                    isImporting = false;
     45                    $('#importOverlay').hide();
    4446                    return;
    4547                }
  • btw-importer/trunk/btw-importer.php

    r3377003 r3398027  
    44Plugin URI:         https://github.com/mnasikin/btw-importer
    55Description:        Simple yet powerful plugin to Migrate Blogger to WordPress in one click for free. Import .atom from Google Takeout and the plugin will migrate your content.
    6 Version:            2.2.0
     6Version:            2.3.0
    77Author:             M. Nasikin
    88Author URI:         https://github.com/mnasikin/
  • btw-importer/trunk/changelog.md

    r3377003 r3398027  
    77
    88## 🧾 Changelog
     9
     10### 2.3.0
     11- Fix post type: `page` redirect not working properly
     12- Auto hide overlay on fail, error, or stopped import
     13- Fix Undefined variable $total_items  on `Redirect Log` page
    914
    1015### 2.2.0
  • btw-importer/trunk/readme.txt

    r3377003 r3398027  
    44Requires at least: 6.8.0 
    55Tested up to: 6.8 
    6 Stable tag: 2.2.0 
     6Stable tag: 2.3.0 
    77Requires PHP: 7.4 
    88License: MIT 
     
    6767
    6868== Changelog ==
     69= 2.3.0 =
     70* Fix post type: `page` redirect not working properly
     71* Auto hide overlay on fail, error, or stopped import
     72* Fix Undefined variable $total_items on `Redirect Log` page
     73
    6974= 2.2.0 =
    7075* Remove comments from imported content. Previously, comments imported as posts
     
    8792
    8893== Upgrade Notice ==
    89 = 2.2.0 =
    90  Please check the changelog tab to check what's new.
     94= 2.3.0 =
     95 Please check the changelog tab to check what's new on this version.
  • btw-importer/trunk/redirect-log.php

    r3367871 r3398027  
    103103    );
    104104
     105    $total_items = (int) $wpdb->get_var("SELECT FOUND_ROWS()");
     106
    105107    if (!$results) {
    106108        echo '<p>No redirects found.</p>';
  • btw-importer/trunk/redirect.php

    r3359514 r3398027  
    2222
    2323    // Match Blogger old permalink: /YYYY/MM/slug.html
    24     if (preg_match('#/\d{4}/\d{2}/.+\.html$#', $current_path)) {
     24    if (preg_match('#(/\\d{4}/\\d{2}/.+\\.html$|/p/.+\\.html$)#', $current_path)) {
    2525        $query = new WP_Query([
    2626            'post_type'  => ['post', 'page'],
Note: See TracChangeset for help on using the changeset viewer.