Plugin Directory

Changeset 3475318


Ignore:
Timestamp:
03/05/2026 08:43:19 AM (3 weeks ago)
Author:
recorp
Message:

Trunk to tag 6.0.5.2

Location:
export-wp-page-to-static-html/tags/6.0.5.2
Files:
5 copied

Legend:

Unmodified
Added
Removed
  • export-wp-page-to-static-html/tags/6.0.5.2/README.txt

    r3474705 r3475318  
    55Tested up to:       6.7
    66Requires PHP:       7.4
    7 Stable tag:         6.0.5.1
     7Stable tag:         6.0.5.2
    88License:            GPLv2 or later
    99License URI:        https://www.gnu.org/licenses/gpl-2.0.html
     
    247247
    248248== Changelog ==
     249
     250= 6.0.5.2 =
     251* Fixed: Tables creating error on plugin update.
    249252
    250253= 6.0.0 =
  • export-wp-page-to-static-html/tags/6.0.5.2/export-wp-page-to-static-html.php

    r3474705 r3475318  
    44 * Plugin URI:        https://myrecorp.com
    55 * Description:       Export WP Pages to Static HTML is the most flexible static HTML export plugin for WordPress. Unlike full-site generators, Export WP Pages to Static HTML gives you surgical control — export exactly the posts, pages, or custom post types you need, in the status you want, as the user role you choose.
    6  * Version:           6.0.5.1
     6 * Version:           6.0.5.2
    77 * Author:            ReCorp
    88 * Author URI:        https://www.upwork.com/fl/rayhan1
     
    2020    load_plugin_textdomain('wp-to-html', false, dirname(plugin_basename(__FILE__)) . '/languages');
    2121});
    22 define('WP_TO_HTML_VERSION', '6.0.6.1');
     22define('WP_TO_HTML_VERSION', '6.0.5.2');
    2323define('WP_TO_HTML_PATH', plugin_dir_path(__FILE__));
    2424define('WP_TO_HTML_URL', plugin_dir_url(__FILE__));
     
    315315function wp_to_html_plugin_update() {
    316316    global $wpdb;
    317 
    318317    $installed_version = get_option('wp_to_html_version', ''); // previous stored version
    319318    $current_version   = WP_TO_HTML_VERSION;
     
    328327        $wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}export_page_to_html_logs");
    329328        $wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}export_urls_logs");
    330 
    331329        update_option('wp_to_html_old_tables_removed', true);
    332 
    333         // Create new tables for fresh/migrating installs.
    334         wp_to_html_ensure_tables();
    335     }
     330    }
     331
     332    // Create new tables for fresh/migrating installs.
     333    wp_to_html_ensure_tables();
    336334
    337335    // Bump stored version FIRST so this block won't re-run on the next load.
    338336    update_option('wp_to_html_version', $current_version, false);
    339337
    340     // Signal the admin_init redirect — but only for real updates, not first installs.
    341     if ($installed_version !== '') {
     338    // Show "What's New" page only when upgrading FROM a version below 6.0.0.
     339    // - Empty string = fresh install → no redirect.
     340    // - Pre-6.0.0 install upgrading to any version → redirect once.
     341    // - 6.0.0 or higher upgrading to a newer 6.x+ → no redirect.
     342    if ($installed_version !== '' && version_compare($installed_version, '6.0.0', '<')) {
    342343        set_transient('wp_to_html_redirect_to_whats_new', 1, 60);
    343344    }
    344345}
    345 add_action( 'plugins_loaded', 'wp_to_html_plugin_update' );
     346add_action('plugins_loaded', 'wp_to_html_plugin_update');
Note: See TracChangeset for help on using the changeset viewer.