Plugin Directory

Changeset 3368295


Ignore:
Timestamp:
09/26/2025 07:39:39 AM (3 months ago)
Author:
DvanKooten
Message:

v3.4.5

Location:
boxzilla
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • boxzilla/tags/3.4.5/CHANGELOG.md

    r3340845 r3368295  
    11Changelog
    22==========
     3
     4### 3.4.5 - Sep 25, 2025
     5
     6- Mark option as autoloaded for a minor performance gain.
     7- Replace `strtotime('now')` with simpler `time()`
     8
    39
    410#### 3.4.4 - Aug 07, 2025
  • boxzilla/tags/3.4.5/boxzilla.php

    r3340845 r3368295  
    33/*
    44Plugin Name: Boxzilla
    5 Version: 3.4.4
     5Version: 3.4.5
    66Plugin URI: https://www.boxzillaplugin.com/
    77Description: Call-To-Action Boxes that display after visitors scroll down far enough. Unobtrusive, but highly conversing!
     
    3939define('BOXZILLA_FILE', __FILE__);
    4040define('BOXZILLA_DIR', __DIR__);
    41 define('BOXZILLA_VERSION', '3.4.4');
     41define('BOXZILLA_VERSION', '3.4.5');
    4242
    4343require __DIR__ . '/autoload.php';
  • boxzilla/tags/3.4.5/readme.txt

    r3340845 r3368295  
    55Requires at least: 4.6
    66Tested up to: 6.8
    7 Stable tag: 3.4.4
     7Stable tag: 3.4.5
    88License: GPL-3.0-or-later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    130130
    131131
     132### 3.4.5 - Sep 25, 2025
     133
     134- Mark option as autoloaded for a minor performance gain.
     135- Replace `strtotime('now')` with simpler `time()`
     136
     137
    132138#### 3.4.4 - Aug 07, 2025
    133139
  • boxzilla/tags/3.4.5/src/licensing/class-license.php

    r3260627 r3368295  
    119119        }
    120120
    121         update_option($this->option_key, $this->data);
     121        update_option($this->option_key, $this->data, true);
    122122        $this->dirty = false;
    123123    }
  • boxzilla/tags/3.4.5/src/licensing/class-update-manager.php

    r3260627 r3368295  
    150150        // don't try if we failed a request recently.
    151151        $failed_at = get_transient('boxzilla_request_failed');
    152         if (! empty($failed_at) && ( ( strtotime('now') - 300 ) < $failed_at )) {
     152        if (! empty($failed_at) && ( ( time() - 300 ) < $failed_at )) {
    153153            return [];
    154154        }
     
    159159        } catch (API_Exception $e) {
    160160            // set flag for 5 minutes
    161             set_transient('boxzilla_request_failed', strtotime('now'), 300);
     161            set_transient('boxzilla_request_failed', time(), 300);
    162162            return [];
    163163        }
  • boxzilla/trunk/CHANGELOG.md

    r3340845 r3368295  
    11Changelog
    22==========
     3
     4### 3.4.5 - Sep 25, 2025
     5
     6- Mark option as autoloaded for a minor performance gain.
     7- Replace `strtotime('now')` with simpler `time()`
     8
    39
    410#### 3.4.4 - Aug 07, 2025
  • boxzilla/trunk/boxzilla.php

    r3340845 r3368295  
    33/*
    44Plugin Name: Boxzilla
    5 Version: 3.4.4
     5Version: 3.4.5
    66Plugin URI: https://www.boxzillaplugin.com/
    77Description: Call-To-Action Boxes that display after visitors scroll down far enough. Unobtrusive, but highly conversing!
     
    3939define('BOXZILLA_FILE', __FILE__);
    4040define('BOXZILLA_DIR', __DIR__);
    41 define('BOXZILLA_VERSION', '3.4.4');
     41define('BOXZILLA_VERSION', '3.4.5');
    4242
    4343require __DIR__ . '/autoload.php';
  • boxzilla/trunk/readme.txt

    r3340845 r3368295  
    55Requires at least: 4.6
    66Tested up to: 6.8
    7 Stable tag: 3.4.4
     7Stable tag: 3.4.5
    88License: GPL-3.0-or-later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    130130
    131131
     132### 3.4.5 - Sep 25, 2025
     133
     134- Mark option as autoloaded for a minor performance gain.
     135- Replace `strtotime('now')` with simpler `time()`
     136
     137
    132138#### 3.4.4 - Aug 07, 2025
    133139
  • boxzilla/trunk/src/licensing/class-license.php

    r3260627 r3368295  
    119119        }
    120120
    121         update_option($this->option_key, $this->data);
     121        update_option($this->option_key, $this->data, true);
    122122        $this->dirty = false;
    123123    }
  • boxzilla/trunk/src/licensing/class-update-manager.php

    r3260627 r3368295  
    150150        // don't try if we failed a request recently.
    151151        $failed_at = get_transient('boxzilla_request_failed');
    152         if (! empty($failed_at) && ( ( strtotime('now') - 300 ) < $failed_at )) {
     152        if (! empty($failed_at) && ( ( time() - 300 ) < $failed_at )) {
    153153            return [];
    154154        }
     
    159159        } catch (API_Exception $e) {
    160160            // set flag for 5 minutes
    161             set_transient('boxzilla_request_failed', strtotime('now'), 300);
     161            set_transient('boxzilla_request_failed', time(), 300);
    162162            return [];
    163163        }
Note: See TracChangeset for help on using the changeset viewer.