Changeset 3475322
- Timestamp:
- 03/05/2026 08:45:39 AM (3 weeks ago)
- Location:
- export-wp-page-to-static-html/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
export-wp-page-to-static-html.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
export-wp-page-to-static-html/trunk/README.txt
r3474705 r3475322 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.4 7 Stable tag: 6.0.5. 17 Stable tag: 6.0.5.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 247 247 248 248 == Changelog == 249 250 = 6.0.5.2 = 251 * Fixed: Tables creating error on plugin update. 249 252 250 253 = 6.0.0 = -
export-wp-page-to-static-html/trunk/export-wp-page-to-static-html.php
r3474705 r3475322 4 4 * Plugin URI: https://myrecorp.com 5 5 * 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. 16 * Version: 6.0.5.2 7 7 * Author: ReCorp 8 8 * Author URI: https://www.upwork.com/fl/rayhan1 … … 20 20 load_plugin_textdomain('wp-to-html', false, dirname(plugin_basename(__FILE__)) . '/languages'); 21 21 }); 22 define('WP_TO_HTML_VERSION', '6.0. 6.1');22 define('WP_TO_HTML_VERSION', '6.0.5.2'); 23 23 define('WP_TO_HTML_PATH', plugin_dir_path(__FILE__)); 24 24 define('WP_TO_HTML_URL', plugin_dir_url(__FILE__)); … … 315 315 function wp_to_html_plugin_update() { 316 316 global $wpdb; 317 318 317 $installed_version = get_option('wp_to_html_version', ''); // previous stored version 319 318 $current_version = WP_TO_HTML_VERSION; … … 328 327 $wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}export_page_to_html_logs"); 329 328 $wpdb->query("DROP TABLE IF EXISTS {$wpdb->prefix}export_urls_logs"); 330 331 329 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(); 336 334 337 335 // Bump stored version FIRST so this block won't re-run on the next load. 338 336 update_option('wp_to_html_version', $current_version, false); 339 337 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', '<')) { 342 343 set_transient('wp_to_html_redirect_to_whats_new', 1, 60); 343 344 } 344 345 } 345 add_action( 'plugins_loaded', 'wp_to_html_plugin_update');346 add_action('plugins_loaded', 'wp_to_html_plugin_update');
Note: See TracChangeset
for help on using the changeset viewer.