Version Description
- Fixed bug from 1.17.6 where updating old posts would result in 400 level errors
Download this release
Release Info
Developer | OneSignal |
Plugin | OneSignal – Free Web Push Notifications |
Version | 1.17.7 |
Comparing to | |
See all releases |
Code changes from version 1.17.6 to 1.17.7
- onesignal-admin.php +13 -12
- onesignal.php +2 -2
- readme.txt +5 -1
onesignal-admin.php
CHANGED
@@ -763,23 +763,24 @@ class OneSignal_Admin
|
|
763 |
$uuid = self::uuid($notif_content);
|
764 |
update_post_meta($post->ID, 'uuid', $uuid);
|
765 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
766 |
if ($new_status == 'future' && $old_uuid_array) {
|
767 |
if ($old_uuid_array[0] != $uuid) {
|
768 |
self::cancel_scheduled_notification($post);
|
769 |
}
|
|
|
|
|
770 |
}
|
771 |
|
772 |
-
$fields = array(
|
773 |
-
'external_id' => $uuid,
|
774 |
-
'app_id' => $onesignal_wp_settings['app_id'],
|
775 |
-
'headings' => array('en' => $site_title),
|
776 |
-
'included_segments' => array('All'),
|
777 |
-
'isAnyWeb' => true,
|
778 |
-
'url' => get_permalink($post->ID),
|
779 |
-
'contents' => array('en' => $notif_content),
|
780 |
-
'send_after' => $post_time,
|
781 |
-
);
|
782 |
-
|
783 |
$send_to_mobile_platforms = $onesignal_wp_settings['send_to_mobile_platforms'];
|
784 |
if ($send_to_mobile_platforms == true) {
|
785 |
$fields['isIos'] = true;
|
@@ -1026,4 +1027,4 @@ class OneSignal_Admin
|
|
1026 |
}
|
1027 |
}
|
1028 |
|
1029 |
-
?>
|
763 |
$uuid = self::uuid($notif_content);
|
764 |
update_post_meta($post->ID, 'uuid', $uuid);
|
765 |
|
766 |
+
$fields = array(
|
767 |
+
'external_id' => $uuid,
|
768 |
+
'app_id' => $onesignal_wp_settings['app_id'],
|
769 |
+
'headings' => array('en' => $site_title),
|
770 |
+
'included_segments' => array('All'),
|
771 |
+
'isAnyWeb' => true,
|
772 |
+
'url' => get_permalink($post->ID),
|
773 |
+
'contents' => array('en' => $notif_content),
|
774 |
+
);
|
775 |
+
|
776 |
if ($new_status == 'future' && $old_uuid_array) {
|
777 |
if ($old_uuid_array[0] != $uuid) {
|
778 |
self::cancel_scheduled_notification($post);
|
779 |
}
|
780 |
+
|
781 |
+
$fields['send_after'] = $post_time;
|
782 |
}
|
783 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
784 |
$send_to_mobile_platforms = $onesignal_wp_settings['send_to_mobile_platforms'];
|
785 |
if ($send_to_mobile_platforms == true) {
|
786 |
$fields['isIos'] = true;
|
1027 |
}
|
1028 |
}
|
1029 |
|
1030 |
+
?>
|
onesignal.php
CHANGED
@@ -6,7 +6,7 @@ defined( 'ABSPATH' ) or die('This page may not be accessed directly.');
|
|
6 |
* Plugin Name: OneSignal Push Notifications
|
7 |
* Plugin URI: https://onesignal.com/
|
8 |
* Description: Free web push notifications.
|
9 |
-
* Version: 1.17.
|
10 |
* Author: OneSignal
|
11 |
* Author URI: https://onesignal.com
|
12 |
* License: MIT
|
@@ -33,4 +33,4 @@ if (file_exists(plugin_dir_path( __FILE__ ) . 'onesignal-extra.php')) {
|
|
33 |
add_action( 'init', array( 'OneSignal_Admin', 'init' ) );
|
34 |
add_action( 'init', array( 'OneSignal_Public', 'init' ) );
|
35 |
|
36 |
-
?>
|
6 |
* Plugin Name: OneSignal Push Notifications
|
7 |
* Plugin URI: https://onesignal.com/
|
8 |
* Description: Free web push notifications.
|
9 |
+
* Version: 1.17.7
|
10 |
* Author: OneSignal
|
11 |
* Author URI: https://onesignal.com
|
12 |
* License: MIT
|
33 |
add_action( 'init', array( 'OneSignal_Admin', 'init' ) );
|
34 |
add_action( 'init', array( 'OneSignal_Public', 'init' ) );
|
35 |
|
36 |
+
?>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://onesignal.com
|
|
4 |
Tags: chrome, firefox, safari, push, push notifications, push notification, chrome push, safari push, firefox push, notification, notifications, web push, notify, mavericks, android, android push, android notifications, android notification, mobile notification, mobile notifications, mobile, desktop notification, roost, goroost, desktop notifications, gcm, push messages, onesignal
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 5.2.1
|
7 |
-
Stable tag: 1.17.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -65,6 +65,10 @@ HTTPS Setup Video: [youtube https://www.youtube.com/watch?v=BeTZ2KgytC0]
|
|
65 |
|
66 |
== Changelog ==
|
67 |
|
|
|
|
|
|
|
|
|
68 |
= 1.17.6 =
|
69 |
|
70 |
- Fixed bug where scheduled posts would send notifications immediately, added Gutenberg support for scheduled notifications
|
4 |
Tags: chrome, firefox, safari, push, push notifications, push notification, chrome push, safari push, firefox push, notification, notifications, web push, notify, mavericks, android, android push, android notifications, android notification, mobile notification, mobile notifications, mobile, desktop notification, roost, goroost, desktop notifications, gcm, push messages, onesignal
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 5.2.1
|
7 |
+
Stable tag: 1.17.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
65 |
|
66 |
== Changelog ==
|
67 |
|
68 |
+
= 1.17.7 =
|
69 |
+
|
70 |
+
- Fixed bug from 1.17.6 where updating old posts would result in 400 level errors
|
71 |
+
|
72 |
= 1.17.6 =
|
73 |
|
74 |
- Fixed bug where scheduled posts would send notifications immediately, added Gutenberg support for scheduled notifications
|