Changeset 3448407
- Timestamp:
- 01/28/2026 06:54:25 AM (6 weeks ago)
- Location:
- griffinforms-form-builder/trunk
- Files:
-
- 4 edited
-
config.php (modified) (1 diff)
-
db.php (modified) (2 diffs)
-
griffinforms.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
griffinforms-form-builder/trunk/config.php
r3448124 r3448407 5 5 class Config 6 6 { 7 public const VERSION = '2.1.8. 0';7 public const VERSION = '2.1.8.1'; 8 8 public const DB_VER = '1.0'; 9 9 public const PHP_REQUIRED = '8.2'; -
griffinforms-form-builder/trunk/db.php
r3448124 r3448407 5 5 class Db 6 6 { 7 private const MIGRATIONS_VERSION = '2.1.8.0'; 7 8 protected $config; 8 9 public $name_columns; … … 421 422 { 422 423 $this->setGlobals(); 423 $this->migrateFormTable(); 424 $this->maybeBackfillLifetimeSubmissionCount(); 424 $current_version = get_option('griffinforms_db_migrations_version', '0'); 425 $backfill_done = get_option('griffinforms_lifetime_submission_count_backfilled'); 426 427 if (version_compare($current_version, self::MIGRATIONS_VERSION, '>=') && !empty($backfill_done)) { 428 return; 429 } 430 431 $lock_key = 'griffinforms_db_migrations_lock'; 432 if (get_transient($lock_key)) { 433 return; 434 } 435 set_transient($lock_key, 1, MINUTE_IN_SECONDS * 5); 436 437 try { 438 if (version_compare($current_version, self::MIGRATIONS_VERSION, '<')) { 439 $this->migrateFormTable(); 440 update_option('griffinforms_db_migrations_version', self::MIGRATIONS_VERSION); 441 } 442 $this->maybeBackfillLifetimeSubmissionCount(); 443 } finally { 444 delete_transient($lock_key); 445 } 425 446 } 426 447 -
griffinforms-form-builder/trunk/griffinforms.php
r3448124 r3448407 4 4 * Plugin URI: https://griffinforms.com/ 5 5 * Description: A powerful and flexible form builder for WordPress. Create multi-page forms with drag-and-drop ease, custom validations, and full submission management. 6 * Version: 2.1.8. 06 * Version: 2.1.8.1 7 7 * Requires at least: 6.6 8 8 * Requires PHP: 8.2 -
griffinforms-form-builder/trunk/readme.txt
r3448136 r3448407 5 5 Tested up to: 6.9 6 6 Requires PHP: 8.2 7 Stable tag: 2.1.8. 07 Stable tag: 2.1.8.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 172 172 == Changelog == 173 173 174 = 2.1.8.1 – 2026-01-27 = 175 * Fix: Database migrations now cache completion state to avoid repeated INFORMATION_SCHEMA checks on every request. 176 174 177 = 2.1.8.0 – 2026-01-27 = 175 178 * Feature: Form availability window with start/end date + custom closed messages (frontend + submission guard). … … 485 488 == Upgrade Notice == 486 489 490 = 2.1.8.1 = 491 Fixes repeated schema checks by caching migration completion. Recommended update. 492 487 493 = 2.1.8.0 = 488 494 Adds a form availability window, lifetime submission counting (with admin exclusion + reset), and a new frontend request-locking system. Settings tabs and no‑JS notice styling are also refreshed. Recommended update.
Note: See TracChangeset
for help on using the changeset viewer.