Super Progressive Web Apps - Version 2.2.1

Version Description

  • Date: 17.February.2022
  • Bug Fixed : Some extension addon features are not working properly #245
Download this release

Release Info

Developer superpwa
Plugin Icon 128x128 Super Progressive Web Apps
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2 to 2.2.1

3rd-party/amp.php CHANGED
@@ -19,7 +19,7 @@ class SUPERPWA_AMP_SW{
19
  $this->superpwa_is_amp_activated();
20
 
21
  // Change service worker filename to match OneSignal's service worker
22
- add_filter( 'superpwa_sw_filename', array($this, 'superpwa_amp_sw_filename') );
23
 
24
  add_action('pre_amp_render_post', array($this, 'superpwa_amp_entry_point'));
25
  //Automattic AMP will be done here
@@ -54,7 +54,7 @@ class SUPERPWA_AMP_SW{
54
  $url = superpwa_site_url();
55
  $home_url = superpwa_home_url();
56
  $swhtml = $url.'superpwa-amp-sw'.superpwa_multisite_filename_postfix().'.html';
57
- $swjs_path_amp = $url.'superpwa-amp-sw'.superpwa_multisite_filename_postfix().'.js';
58
  ?>
59
  <amp-install-serviceworker data-scope="<?php echo trailingslashit($home_url); ?>"
60
  src="<?php echo esc_url_raw($swjs_path_amp); ?>"
19
  $this->superpwa_is_amp_activated();
20
 
21
  // Change service worker filename to match OneSignal's service worker
22
+ //add_filter( 'superpwa_sw_filename', array($this, 'superpwa_amp_sw_filename') );
23
 
24
  add_action('pre_amp_render_post', array($this, 'superpwa_amp_entry_point'));
25
  //Automattic AMP will be done here
54
  $url = superpwa_site_url();
55
  $home_url = superpwa_home_url();
56
  $swhtml = $url.'superpwa-amp-sw'.superpwa_multisite_filename_postfix().'.html';
57
+ $swjs_path_amp = $url.'superpwa-sw'.superpwa_multisite_filename_postfix().'.js';
58
  ?>
59
  <amp-install-serviceworker data-scope="<?php echo trailingslashit($home_url); ?>"
60
  src="<?php echo esc_url_raw($swjs_path_amp); ?>"
addons/apple-touch-icons.php CHANGED
@@ -267,7 +267,7 @@ function apple_splashscreen_files_data(){
267
  }
268
 
269
  function superpwa_load_admin_scripts($hooks){
270
- if( !in_array($hooks, array('superpwa_page_superpwa-apple-icons', 'super-pwa_page_superpwa-apple-icons')) ) {
271
  return false;
272
  }
273
  wp_enqueue_media();
267
  }
268
 
269
  function superpwa_load_admin_scripts($hooks){
270
+ if( !in_array($hooks, array('superpwa_page_superpwa-apple-icons', 'super-pwa_page_superpwa-apple-icons')) && strpos($hooks, 'superpwa-apple-icons') == false ) {
271
  return false;
272
  }
273
  wp_enqueue_media();
addons/caching-strategies.php CHANGED
@@ -418,7 +418,7 @@ function superpwa_caching_strategies_pre_caching_cb() {
418
  */
419
 
420
  function superpwa_precache_load_admin_scripts($hooks){
421
- if( !in_array($hooks, array('superpwa_page_superpwa-caching-strategies', 'super-pwa_page_superpwa-caching-strategies')) ) {
422
  return false;
423
  }
424
 
418
  */
419
 
420
  function superpwa_precache_load_admin_scripts($hooks){
421
+ if( !in_array($hooks, array('superpwa_page_superpwa-caching-strategies', 'super-pwa_page_superpwa-caching-strategies')) && strpos($hooks, 'superpwa-caching-strategies') == false ) {
422
  return false;
423
  }
424
 
public/amphtml.php CHANGED
@@ -3,7 +3,7 @@
3
  function amp_service_worker_template(){
4
  $url = superpwa_site_url();
5
  $home_url = superpwa_home_url();
6
- $swjs_path_amp = $url.'superpwa-amp-sw'.superpwa_multisite_filename_postfix().'.js';
7
  ?>
8
  <!doctype html>
9
  <html>
3
  function amp_service_worker_template(){
4
  $url = superpwa_site_url();
5
  $home_url = superpwa_home_url();
6
+ $swjs_path_amp = $url.'superpwa-sw'.superpwa_multisite_filename_postfix().'.js';
7
  ?>
8
  <!doctype html>
9
  <html>
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: SuperPWA
3
  Tags: pwa, progressive web apps, manifest, web manifest, android app, chrome app, add to homescreen, mobile web
4
  Requires at least: 3.6.0
5
- Tested up to: 5.8.2
6
  Requires PHP: 5.3
7
  Stable tag: trunk
8
  License: GPLv2 or later
@@ -186,6 +186,10 @@ Feel free to get in touch if you have any questions.
186
 
187
  == Changelog ==
188
 
 
 
 
 
189
  = 2.2 =
190
  * Date: [14.December.2021](https://superpwa.com/superpwa-2-2-release-note/?utm_source=wordpress.org&utm_medium=changelog)
191
  * Bug Fixed : Fixed Manifest Warnings Regarding Icon Purpose Value#237
2
  Contributors: SuperPWA
3
  Tags: pwa, progressive web apps, manifest, web manifest, android app, chrome app, add to homescreen, mobile web
4
  Requires at least: 3.6.0
5
+ Tested up to: 5.9
6
  Requires PHP: 5.3
7
  Stable tag: trunk
8
  License: GPLv2 or later
186
 
187
  == Changelog ==
188
 
189
+ = 2.2.1 =
190
+ * Date: [17.February.2022](https://superpwa.com/superpwa-2-2-1-release-note/?utm_source=wordpress.org&utm_medium=changelog)
191
+ * Bug Fixed : Some extension addon features are not working properly #245
192
+
193
  = 2.2 =
194
  * Date: [14.December.2021](https://superpwa.com/superpwa-2-2-release-note/?utm_source=wordpress.org&utm_medium=changelog)
195
  * Bug Fixed : Fixed Manifest Warnings Regarding Icon Purpose Value#237
superpwa.php CHANGED
@@ -6,7 +6,7 @@
6
  * Author: SuperPWA
7
  * Author URI: https://profiles.wordpress.org/superpwa/
8
  * Contributors: SuperPWA
9
- * Version: 2.2
10
  * Text Domain: super-progressive-web-apps
11
  * Domain Path: /languages
12
  * License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
@@ -43,7 +43,7 @@ if ( ! defined('ABSPATH') ) exit;
43
  * @since 1.0
44
  */
45
  if ( ! defined( 'SUPERPWA_VERSION' ) ) {
46
- define( 'SUPERPWA_VERSION' , '2.2' );
47
  }
48
 
49
  /**
6
  * Author: SuperPWA
7
  * Author URI: https://profiles.wordpress.org/superpwa/
8
  * Contributors: SuperPWA
9
+ * Version: 2.2.1
10
  * Text Domain: super-progressive-web-apps
11
  * Domain Path: /languages
12
  * License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
43
  * @since 1.0
44
  */
45
  if ( ! defined( 'SUPERPWA_VERSION' ) ) {
46
+ define( 'SUPERPWA_VERSION' , '2.2.1' );
47
  }
48
 
49
  /**