Plugin Directory

Changeset 2924524


Ignore:
Timestamp:
06/12/2023 12:18:43 AM (3 years ago)
Author:
rickey29
Message:

2.33.0

Location:
hyper-pwa/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • hyper-pwa/trunk/cfg/cfg.php

    r2908742 r2924524  
    55}
    66
    7 define( 'HYPER_PWA_VERSION', '2.32.0' );
     7define( 'HYPER_PWA_VERSION', '2.33.0' );
    88define( 'HYPER_PWA_VERSION_ID', 'hyper-pwa-version-id' );
    99
  • hyper-pwa/trunk/hyper-pwa.php

    r2908742 r2924524  
    44Plugin URI:  https://github.com/rickey29/hyper-pwa
    55Description: Provide custom Manifest and Service Worker, convert WordPress into Progressive Web Apps (PWA).
    6 Version:     2.32.0
     6Version:     2.33.0
    77Author:      Rickey Gu
    88Author URI:  https://flexplat.com
     
    183183
    184184
     185        $version = get_option( HYPER_PWA_VERSION_ID );
    185186        $transient_timestamp = get_option( HYPER_PWA_TRANSIENT_TIMESTAMP );
    186         $version = get_option( HYPER_PWA_VERSION_ID );
    187 
    188         if ( HYPER_PWA_TRANSIENT_SCHEDULE_RECURRENCE <= $this->time_now - $transient_timestamp || HYPER_PWA_VERSION !== $version )
    189         {
     187
     188        if ( HYPER_PWA_VERSION !== $version )
     189        {
     190            update_option( HYPER_PWA_VERSION_ID, HYPER_PWA_VERSION );
    190191            update_option( HYPER_PWA_TRANSIENT_TIMESTAMP, $this->time_now );
    191             update_option( HYPER_PWA_VERSION_ID, HYPER_PWA_VERSION );
     192
     193            $this->retrieve->reset_transient();
     194        }
     195        elseif ( HYPER_PWA_TRANSIENT_SCHEDULE_RECURRENCE <= $this->time_now - $transient_timestamp )
     196        {
     197            update_option( HYPER_PWA_TRANSIENT_TIMESTAMP, $this->time_now );
    192198
    193199            $this->retrieve->reset_transient();
     
    387393    public function register_activation()
    388394    {
     395        add_option( HYPER_PWA_VERSION_ID, HYPER_PWA_VERSION );
    389396        add_option( HYPER_PWA_TRANSIENT_TIMESTAMP, $this->time_now );
    390         add_option( HYPER_PWA_VERSION_ID, HYPER_PWA_VERSION );
    391397
    392398        $this->retrieve->reset_transient();
     
    403409        $this->retrieve->remove_transient();
    404410
     411        delete_option( HYPER_PWA_VERSION_ID );
    405412        delete_option( HYPER_PWA_TRANSIENT_TIMESTAMP );
    406         delete_option( HYPER_PWA_VERSION_ID );
    407413    }
    408414}
  • hyper-pwa/trunk/readme.txt

    r2908742 r2924524  
    44Tags: progressive web apps, pwa, manifest, service worker, publish to app stores, add to home screen, offline, push notifications, firebase, accelerate mobile pages, amp, onesignal
    55Requires at least: 5.1
    6 Tested up to: 6.2
     6Tested up to: 6.2.2
    77Requires PHP: 7.2
    8 Stable tag: 2.32.0
     8Stable tag: 2.33.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    109109
    110110== Changelog ==
     111= 2.33.0
     112(Sun., Jun. 11, 2023)
     113* Improvement: Show Add to Home Screen only on specific url.
     114
    111115= 2.32.0
    112116(Fri., May 05, 2023)
Note: See TracChangeset for help on using the changeset viewer.