Version Description
- Date: 05.May.2018
- Bug Fix: Fix fatal error in PHP versions prior to PHP 5.5. "Cant use function return value in write context".
Download this release
Release Info
Developer | arunbasillal |
Plugin | Super Progressive Web Apps |
Version | 1.7.1 |
Comparing to | |
See all releases |
Code changes from version 1.7 to 1.7.1
- README.MD +2 -1
- functions/common.php +1 -1
- readme.txt +7 -0
- superpwa.php +2 -9
README.MD
CHANGED
@@ -96,6 +96,7 @@ Here are the current features of Super Progressive Web Apps:
|
|
96 |
* New in version 1.4: You can now set the theme_color property in the manifest.
|
97 |
* New in version 1.5: OneSignal integration for Push notifications.
|
98 |
* New in version 1.6: WordPress Multisite Network compatibility.
|
|
|
99 |
|
100 |
#### 🔮 Upcoming features:
|
101 |
* Offline Indicator Notice.
|
@@ -131,7 +132,7 @@ The list is fast growing and is likely to be supported in most major browsers by
|
|
131 |
|
132 |
Your Progressive Web App should be ready to test with the default settings upon activation. You can customize it further and make it truly your own.
|
133 |
|
134 |
-
* Go to WordPress Admin > **
|
135 |
* Set a Background Color for the splash screen to be shown when your PWA is opened on a mobile device.
|
136 |
* Set the Application Icon. This will be the icon of your PWA when it is added to the homescreen in a mobile device. The icon must be a PNG image and exactly 192 x 192 pixels in size.
|
137 |
* Set the Offline Page. This page will be displayed if the user is offline and the page he requested is not cached already. Ideally you should create a dedicated WordPress page and set it here. Within the page you create, you could add a note that reads, "It looks like you are offline and the page you requested is not available right now. Please check back again once you are online.".
|
96 |
* New in version 1.4: You can now set the theme_color property in the manifest.
|
97 |
* New in version 1.5: OneSignal integration for Push notifications.
|
98 |
* New in version 1.6: WordPress Multisite Network compatibility.
|
99 |
+
* New in version 1.7: Add-Ons for SuperPWA is here! Ships with [UTM Tracking Add-On](https://superpwa.com/addons/utm-tracking/?utm_source=github&utm_medium=readme) to track visits coming from your PWA.
|
100 |
|
101 |
#### 🔮 Upcoming features:
|
102 |
* Offline Indicator Notice.
|
132 |
|
133 |
Your Progressive Web App should be ready to test with the default settings upon activation. You can customize it further and make it truly your own.
|
134 |
|
135 |
+
* Go to WordPress Admin > "**SuperPWA**" > **Settings**
|
136 |
* Set a Background Color for the splash screen to be shown when your PWA is opened on a mobile device.
|
137 |
* Set the Application Icon. This will be the icon of your PWA when it is added to the homescreen in a mobile device. The icon must be a PNG image and exactly 192 x 192 pixels in size.
|
138 |
* Set the Offline Page. This page will be displayed if the user is offline and the page he requested is not cached already. Ideally you should create a dedicated WordPress page and set it here. Within the page you create, you could add a note that reads, "It looks like you are offline and the page you requested is not available right now. Please check back again once you are online.".
|
functions/common.php
CHANGED
@@ -82,7 +82,7 @@ function superpwa_get_start_url( $rel = false ) {
|
|
82 |
if ( $rel === true ) {
|
83 |
|
84 |
// Make start_url relative for manifest
|
85 |
-
$start_url =
|
86 |
|
87 |
return apply_filters( 'superpwa_manifest_start_url', $start_url );
|
88 |
}
|
82 |
if ( $rel === true ) {
|
83 |
|
84 |
// Make start_url relative for manifest
|
85 |
+
$start_url = ( parse_url( $start_url, PHP_URL_PATH ) == '' ) ? '.' : parse_url( $start_url, PHP_URL_PATH );
|
86 |
|
87 |
return apply_filters( 'superpwa_manifest_start_url', $start_url );
|
88 |
}
|
readme.txt
CHANGED
@@ -146,6 +146,10 @@ PWA's require browsers with support for service workers and for iOS devices, sup
|
|
146 |
|
147 |
== Changelog ==
|
148 |
|
|
|
|
|
|
|
|
|
149 |
= 1.7 =
|
150 |
* Date: 03.May.2018
|
151 |
* Minimum required WordPress version is now 3.6.0 (previously 3.5.0).
|
@@ -221,6 +225,9 @@ PWA's require browsers with support for service workers and for iOS devices, sup
|
|
221 |
|
222 |
== Upgrade Notice ==
|
223 |
|
|
|
|
|
|
|
224 |
= 1.7 =
|
225 |
* Minimum required WordPress version is now 3.6.0 (previously 3.5.0).
|
226 |
* New Feature: Add-Ons for SuperPWA is here!
|
146 |
|
147 |
== Changelog ==
|
148 |
|
149 |
+
= 1.7.1 =
|
150 |
+
* Date: 05.May.2018
|
151 |
+
* Bug Fix: Fix fatal error in PHP versions prior to PHP 5.5. "Cant use function return value in write context".
|
152 |
+
|
153 |
= 1.7 =
|
154 |
* Date: 03.May.2018
|
155 |
* Minimum required WordPress version is now 3.6.0 (previously 3.5.0).
|
225 |
|
226 |
== Upgrade Notice ==
|
227 |
|
228 |
+
= 1.7.1 =
|
229 |
+
* Bug Fix: Fix fatal error in PHP versions prior to PHP 5.5. "Cant use function return value in write context".
|
230 |
+
|
231 |
= 1.7 =
|
232 |
* Minimum required WordPress version is now 3.6.0 (previously 3.5.0).
|
233 |
* New Feature: Add-Ons for SuperPWA is here!
|
superpwa.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Author: SuperPWA
|
7 |
* Author URI: https://superpwa.com
|
8 |
* Contributors: Arun Basil Lal, Jose Varghese
|
9 |
-
* Version: 1.7
|
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
|
@@ -33,13 +33,6 @@
|
|
33 |
* uninstall.php - Fired when the plugin is uninstalled.
|
34 |
*/
|
35 |
|
36 |
-
/**
|
37 |
-
* ~ Release TODO ~
|
38 |
-
*
|
39 |
-
* Update SUPERPWA_VERSION
|
40 |
-
* Spellcheck readme.txt
|
41 |
-
*/
|
42 |
-
|
43 |
// Exit if accessed directly
|
44 |
if ( ! defined('ABSPATH') ) exit;
|
45 |
|
@@ -50,7 +43,7 @@ if ( ! defined('ABSPATH') ) exit;
|
|
50 |
* @since 1.6 Depreciated constants for multisite compatibility: SUPERPWA_MANIFEST_FILENAME, SUPERPWA_MANIFEST_ABS, SUPERPWA_MANIFEST_SRC
|
51 |
* @since 1.6 Depreciated constants for multisite compatibility: SUPERPWA_SW_FILENAME, SUPERPWA_SW_ABS, SUPERPWA_SW_SRC
|
52 |
*/
|
53 |
-
if ( ! defined( 'SUPERPWA_VERSION' ) ) define( 'SUPERPWA_VERSION' , '1.7' ); // SuperPWA current version
|
54 |
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/super-progressive-web-apps/
|
55 |
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/super-progressive-web-apps/
|
56 |
|
6 |
* Author: SuperPWA
|
7 |
* Author URI: https://superpwa.com
|
8 |
* Contributors: Arun Basil Lal, Jose Varghese
|
9 |
+
* Version: 1.7.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
|
33 |
* uninstall.php - Fired when the plugin is uninstalled.
|
34 |
*/
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
// Exit if accessed directly
|
37 |
if ( ! defined('ABSPATH') ) exit;
|
38 |
|
43 |
* @since 1.6 Depreciated constants for multisite compatibility: SUPERPWA_MANIFEST_FILENAME, SUPERPWA_MANIFEST_ABS, SUPERPWA_MANIFEST_SRC
|
44 |
* @since 1.6 Depreciated constants for multisite compatibility: SUPERPWA_SW_FILENAME, SUPERPWA_SW_ABS, SUPERPWA_SW_SRC
|
45 |
*/
|
46 |
+
if ( ! defined( 'SUPERPWA_VERSION' ) ) define( 'SUPERPWA_VERSION' , '1.7.1' ); // SuperPWA current version
|
47 |
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/super-progressive-web-apps/
|
48 |
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/super-progressive-web-apps/
|
49 |
|