Changeset 2924524
- Timestamp:
- 06/12/2023 12:18:43 AM (3 years ago)
- Location:
- hyper-pwa/trunk
- Files:
-
- 3 edited
-
cfg/cfg.php (modified) (1 diff)
-
hyper-pwa.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hyper-pwa/trunk/cfg/cfg.php
r2908742 r2924524 5 5 } 6 6 7 define( 'HYPER_PWA_VERSION', '2.3 2.0' );7 define( 'HYPER_PWA_VERSION', '2.33.0' ); 8 8 define( 'HYPER_PWA_VERSION_ID', 'hyper-pwa-version-id' ); 9 9 -
hyper-pwa/trunk/hyper-pwa.php
r2908742 r2924524 4 4 Plugin URI: https://github.com/rickey29/hyper-pwa 5 5 Description: Provide custom Manifest and Service Worker, convert WordPress into Progressive Web Apps (PWA). 6 Version: 2.3 2.06 Version: 2.33.0 7 7 Author: Rickey Gu 8 8 Author URI: https://flexplat.com … … 183 183 184 184 185 $version = get_option( HYPER_PWA_VERSION_ID ); 185 186 $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 ); 190 191 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 ); 192 198 193 199 $this->retrieve->reset_transient(); … … 387 393 public function register_activation() 388 394 { 395 add_option( HYPER_PWA_VERSION_ID, HYPER_PWA_VERSION ); 389 396 add_option( HYPER_PWA_TRANSIENT_TIMESTAMP, $this->time_now ); 390 add_option( HYPER_PWA_VERSION_ID, HYPER_PWA_VERSION );391 397 392 398 $this->retrieve->reset_transient(); … … 403 409 $this->retrieve->remove_transient(); 404 410 411 delete_option( HYPER_PWA_VERSION_ID ); 405 412 delete_option( HYPER_PWA_TRANSIENT_TIMESTAMP ); 406 delete_option( HYPER_PWA_VERSION_ID );407 413 } 408 414 } -
hyper-pwa/trunk/readme.txt
r2908742 r2924524 4 4 Tags: progressive web apps, pwa, manifest, service worker, publish to app stores, add to home screen, offline, push notifications, firebase, accelerate mobile pages, amp, onesignal 5 5 Requires at least: 5.1 6 Tested up to: 6.2 6 Tested up to: 6.2.2 7 7 Requires PHP: 7.2 8 Stable tag: 2.3 2.08 Stable tag: 2.33.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 109 109 110 110 == Changelog == 111 = 2.33.0 112 (Sun., Jun. 11, 2023) 113 * Improvement: Show Add to Home Screen only on specific url. 114 111 115 = 2.32.0 112 116 (Fri., May 05, 2023)
Note: See TracChangeset
for help on using the changeset viewer.