Super Progressive Web Apps - Version 1.1.1

Version Description

  • Date: 30.January.2018
  • Fix fatal error in PHP versions prior to PHP 5.5. "Cant use function return value in write context". PHP manual says "Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error."
Download this release

Release Info

Developer arunbasillal
Plugin Icon 128x128 Super Progressive Web Apps
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1 to 1.1.1

Files changed (3) hide show
  1. admin/admin-setup.php +1 -1
  2. readme.txt +14 -0
  3. superpwa.php +2 -2
admin/admin-setup.php CHANGED
@@ -112,7 +112,7 @@ function superpwa_validater_and_sanitizer( $settings ) {
112
  $settings['background_color'] = preg_match( '/#([a-f0-9]{3}){1,2}\b/i', $settings['background_color'] ) ? sanitize_text_field( $settings['background_color'] ) : '#D5E0EB';
113
 
114
  // Sanitize application icon
115
- $settings['icon'] = empty( sanitize_text_field($settings['icon']) ) ? SUPERPWA_PATH_SRC . 'public/images/logo.png' : sanitize_text_field($settings['icon']);
116
 
117
  return $settings;
118
  }
112
  $settings['background_color'] = preg_match( '/#([a-f0-9]{3}){1,2}\b/i', $settings['background_color'] ) ? sanitize_text_field( $settings['background_color'] ) : '#D5E0EB';
113
 
114
  // Sanitize application icon
115
+ $settings['icon'] = sanitize_text_field($settings['icon']) == '' ? SUPERPWA_PATH_SRC . 'public/images/logo.png' : sanitize_text_field($settings['icon']);
116
 
117
  return $settings;
118
  }
readme.txt CHANGED
@@ -120,6 +120,10 @@ If you have any questions, please ask it on the [support forum](https://wordpres
120
 
121
  == Changelog ==
122
 
 
 
 
 
123
  = 1.1 =
124
  * Date: 28.January.2018
125
  * Aggressive caching of pages using CacheStorage API.
@@ -132,5 +136,15 @@ If you have any questions, please ask it on the [support forum](https://wordpres
132
 
133
  == Upgrade Notice ==
134
 
 
 
 
 
 
 
 
 
 
 
135
  = 1.0 =
136
  * First release of the plugin.
120
 
121
  == Changelog ==
122
 
123
+ = 1.1.1 =
124
+ * Date: 30.January.2018
125
+ * Fix fatal error in PHP versions prior to PHP 5.5. "Cant use function return value in write context". PHP manual says "Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error."
126
+
127
  = 1.1 =
128
  * Date: 28.January.2018
129
  * Aggressive caching of pages using CacheStorage API.
136
 
137
  == Upgrade Notice ==
138
 
139
+ = 1.1.1 =
140
+ * Date: 30.January.2018
141
+ * Fix fatal error in PHP versions prior to PHP 5.5. "Cant use function return value in write context". PHP manual says "Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error."
142
+
143
+ = 1.1 =
144
+ * Date: 28.January.2018
145
+ * Aggressive caching of pages using CacheStorage API.
146
+ * Pages once cached are served even if the user is offline.
147
+ * Set custom offline page: Select the page you want the user to see when a page that isn't in the cache is accessed and the user is offline.
148
+
149
  = 1.0 =
150
  * First release of the plugin.
superpwa.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Convert your WordPress website into a Progressive Web App
6
  * Author: SuperPWA
7
  * Contributors: Arun Basil Lal, Jose Varghese
8
- * Version: 1.1
9
  * Text Domain: super-progressive-web-apps
10
  * Domain Path: /languages
11
  * License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
@@ -47,7 +47,7 @@ if ( ! defined('ABSPATH') ) exit;
47
  */
48
  if ( ! defined('SUPERPWA_PATH_ABS ') ) define('SUPERPWA_PATH_ABS', plugin_dir_path( __FILE__ )); // absolute path to the plugin directory. eg - /var/www/html/wp-content/plugins/superpwa/
49
  if ( ! defined('SUPERPWA_PATH_SRC') ) define('SUPERPWA_PATH_SRC', plugin_dir_url( __FILE__ )); // link to the plugin folder. eg - http://example.com/wp/wp-content/plugins/superpwa/
50
- if ( ! defined('SUPERPWA_VERSION') ) define('SUPERPWA_VERSION', '1.1'); // Plugin version
51
  if ( ! defined('SUPERPWA_MANIFEST_FILENAME') ) define('SUPERPWA_MANIFEST_FILENAME', 'superpwa-manifest.json'); // Name of Manifest file
52
  if ( ! defined('SUPERPWA_MANIFEST_ABS') ) define('SUPERPWA_MANIFEST_ABS', trailingslashit( ABSPATH ) . SUPERPWA_MANIFEST_FILENAME); // Absolute path to manifest
53
  if ( ! defined('SUPERPWA_MANIFEST_SRC') ) define('SUPERPWA_MANIFEST_SRC', trailingslashit( get_bloginfo('wpurl') ) . SUPERPWA_MANIFEST_FILENAME); // Link to manifest
5
  * Description: Convert your WordPress website into a Progressive Web App
6
  * Author: SuperPWA
7
  * Contributors: Arun Basil Lal, Jose Varghese
8
+ * Version: 1.1.1
9
  * Text Domain: super-progressive-web-apps
10
  * Domain Path: /languages
11
  * License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
47
  */
48
  if ( ! defined('SUPERPWA_PATH_ABS ') ) define('SUPERPWA_PATH_ABS', plugin_dir_path( __FILE__ )); // absolute path to the plugin directory. eg - /var/www/html/wp-content/plugins/superpwa/
49
  if ( ! defined('SUPERPWA_PATH_SRC') ) define('SUPERPWA_PATH_SRC', plugin_dir_url( __FILE__ )); // link to the plugin folder. eg - http://example.com/wp/wp-content/plugins/superpwa/
50
+ if ( ! defined('SUPERPWA_VERSION') ) define('SUPERPWA_VERSION', '1.1.1'); // Plugin version
51
  if ( ! defined('SUPERPWA_MANIFEST_FILENAME') ) define('SUPERPWA_MANIFEST_FILENAME', 'superpwa-manifest.json'); // Name of Manifest file
52
  if ( ! defined('SUPERPWA_MANIFEST_ABS') ) define('SUPERPWA_MANIFEST_ABS', trailingslashit( ABSPATH ) . SUPERPWA_MANIFEST_FILENAME); // Absolute path to manifest
53
  if ( ! defined('SUPERPWA_MANIFEST_SRC') ) define('SUPERPWA_MANIFEST_SRC', trailingslashit( get_bloginfo('wpurl') ) . SUPERPWA_MANIFEST_FILENAME); // Link to manifest