Version Description
- Date: 01.December.2022
- BugFixed : Fixed issue undefined variable $screenshot_array
- BugFixed : The APK has crashed at the user's end, and URL shown inside the APK. #359
Download this release
Release Info
Developer | superpwa |
Plugin | Super Progressive Web Apps |
Version | 2.2.9.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.9 to 2.2.9.1
- functions/common.php +9 -1
- public/manifest.php +6 -1
- readme.txt +5 -0
- superpwa.php +2 -2
functions/common.php
CHANGED
@@ -100,7 +100,15 @@ function superpwa_get_start_url( $rel = false ) {
|
|
100 |
if ( $rel === true ) {
|
101 |
|
102 |
// Make start_url relative for manifest
|
103 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
|
105 |
return apply_filters( 'superpwa_manifest_start_url', $start_url );
|
106 |
}
|
100 |
if ( $rel === true ) {
|
101 |
|
102 |
// Make start_url relative for manifest
|
103 |
+
$addons=get_option('superpwa_active_addons',array());
|
104 |
+
if(in_array('utm_tracking',$addons))
|
105 |
+
{
|
106 |
+
$start_url = ( parse_url( $start_url, PHP_URL_PATH ) == '' ) ? '' : parse_url( $start_url, PHP_URL_PATH );
|
107 |
+
}
|
108 |
+
else
|
109 |
+
{
|
110 |
+
$start_url = ( parse_url( $start_url, PHP_URL_PATH ) == '' ) ? '.' : parse_url( $start_url, PHP_URL_PATH );
|
111 |
+
}
|
112 |
|
113 |
return apply_filters( 'superpwa_manifest_start_url', $start_url );
|
114 |
}
|
public/manifest.php
CHANGED
@@ -125,7 +125,10 @@ function superpwa_manifest_template() {
|
|
125 |
}
|
126 |
|
127 |
$manifest['icons'] = superpwa_get_pwa_icons();
|
128 |
-
|
|
|
|
|
|
|
129 |
$manifest['background_color'] = $settings['background_color'];
|
130 |
$manifest['theme_color'] = $settings['theme_color'];
|
131 |
$manifest['display'] = superpwa_get_display();
|
@@ -352,6 +355,8 @@ function superpwa_get_pwa_screenshots() {
|
|
352 |
|
353 |
// Screenshots - Added since 2.2.8
|
354 |
|
|
|
|
|
355 |
if ( @$settings['screenshots'] != '' ) {
|
356 |
|
357 |
$tmp_arr=explode(',',$settings['screenshots']);
|
125 |
}
|
126 |
|
127 |
$manifest['icons'] = superpwa_get_pwa_icons();
|
128 |
+
if(superpwa_get_pwa_screenshots())
|
129 |
+
{
|
130 |
+
$manifest['screenshots'] = superpwa_get_pwa_screenshots();
|
131 |
+
}
|
132 |
$manifest['background_color'] = $settings['background_color'];
|
133 |
$manifest['theme_color'] = $settings['theme_color'];
|
134 |
$manifest['display'] = superpwa_get_display();
|
355 |
|
356 |
// Screenshots - Added since 2.2.8
|
357 |
|
358 |
+
$screenshot_array=null;
|
359 |
+
|
360 |
if ( @$settings['screenshots'] != '' ) {
|
361 |
|
362 |
$tmp_arr=explode(',',$settings['screenshots']);
|
readme.txt
CHANGED
@@ -186,6 +186,11 @@ Feel free to get in touch if you have any questions.
|
|
186 |
|
187 |
== Changelog ==
|
188 |
|
|
|
|
|
|
|
|
|
|
|
189 |
= 2.2.9 =
|
190 |
* Date: [29.November.2022](https://superpwa.com/superpwa-2-2-9-release-note/?utm_source=wordpress.org&utm_medium=changelog)
|
191 |
* Enhancement : Security nonce is missing #349
|
186 |
|
187 |
== Changelog ==
|
188 |
|
189 |
+
= 2.2.9.1 =
|
190 |
+
* Date: [01.December.2022](https://superpwa.com/superpwa-2-2-9-1-release-note/?utm_source=wordpress.org&utm_medium=changelog)
|
191 |
+
* BugFixed : Fixed issue undefined variable $screenshot_array
|
192 |
+
* BugFixed : The APK has crashed at the user's end, and URL shown inside the APK. #359
|
193 |
+
|
194 |
= 2.2.9 =
|
195 |
* Date: [29.November.2022](https://superpwa.com/superpwa-2-2-9-release-note/?utm_source=wordpress.org&utm_medium=changelog)
|
196 |
* Enhancement : Security nonce is missing #349
|
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.9
|
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.9' );
|
47 |
}
|
48 |
|
49 |
/**
|
6 |
* Author: SuperPWA
|
7 |
* Author URI: https://profiles.wordpress.org/superpwa/
|
8 |
* Contributors: SuperPWA
|
9 |
+
* Version: 2.2.9.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.9.1' );
|
47 |
}
|
48 |
|
49 |
/**
|