Blog2Social: Social Media Auto Post & Scheduler - Version 5.1.3

Version Description

Usability Optimization

Download this release

Release Info

Developer Blog2Social
Plugin Icon 128x128 Blog2Social: Social Media Auto Post & Scheduler
Version 5.1.3
Comparing to
See all releases

Code changes from version 5.1.2 to 5.1.3

blog2social.php CHANGED
@@ -6,12 +6,12 @@
6
* Author: Blog2Social, Adenion
7
* Text Domain: blog2social
8
* Domain Path: /languages
9
- * Version: 5.1.2
10
* Author URI: https://www.blog2social.com
11
* License: GPL2+
12
*/
13
//B2SDefine
14
- define('B2S_PLUGIN_VERSION', '512');
15
define('B2S_PLUGIN_LANGUAGE', serialize(array('de_DE', 'en_US')));
16
define('B2S_PLUGIN_DIR', plugin_dir_path(__FILE__));
17
define('B2S_PLUGIN_URL', plugin_dir_url(__FILE__));
6
* Author: Blog2Social, Adenion
7
* Text Domain: blog2social
8
* Domain Path: /languages
9
+ * Version: 5.1.3
10
* Author URI: https://www.blog2social.com
11
* License: GPL2+
12
*/
13
//B2SDefine
14
+ define('B2S_PLUGIN_VERSION', '513');
15
define('B2S_PLUGIN_LANGUAGE', serialize(array('de_DE', 'en_US')));
16
define('B2S_PLUGIN_DIR', plugin_dir_path(__FILE__));
17
define('B2S_PLUGIN_URL', plugin_dir_url(__FILE__));
includes/B2S/Heartbeat.php CHANGED
@@ -62,7 +62,7 @@ class B2S_Heartbeat {
62
$shipData = serialize($sendData);
63
if (!empty($shipData)) {
64
$data = array('action' => 'postSchedData', 'data' => $shipData);
65
- $result = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $data),90);
66
foreach ($postData as $k => $value) {
67
if (!isset($result->content) || !isset($result->content->{$value['id']})) {
68
$data = array('hook_action' => '1');
@@ -98,7 +98,7 @@ class B2S_Heartbeat {
98
99
if (is_array($sendData) && !empty($sendData) && isset($sendData[0])) {
100
$tempData = array('action' => 'getSchedData', 'data' => serialize($sendData));
101
- $schedResult = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $tempData,90));
102
if ($schedResult->result == true) {
103
foreach ($schedResult->content as $k => $v) {
104
//V2
@@ -182,7 +182,7 @@ class B2S_Heartbeat {
182
if ((int) $v->id > 0 && $publishTime != false) {
183
//since V4.9.1 - check by error is old scheduled instant sharing post
184
$shareApprove = (strtoupper($v->publish_error_code) == 'APPROVE') ? 1 : 0;
185
-
186
//Old since V.5.1.1
187
/* if (!empty($v->publish_error_code)) {
188
$sql = "SELECT details.network_id, details.network_type FROM b2s_posts as posts "
@@ -226,7 +226,7 @@ class B2S_Heartbeat {
226
$wpdb->update('b2s_posts', $data, $where, array('%d'), array('%d'));
227
}
228
$tempData = array('action' => 'updateUserSchedTimePost', 'data' => serialize($sendData));
229
- $result = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $tempData,90));
230
foreach ($sendData as $k => $value) {
231
//is failed, try again later
232
$id = $value['id'];
@@ -253,7 +253,7 @@ class B2S_Heartbeat {
253
$wpdb->update('b2s_posts', $data, $where, array('%d'), array('%d'));
254
}
255
$tempData = array('action' => 'updateUserSchedPost', 'data' => serialize($sendData));
256
- $result = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $tempData,90));
257
foreach ($sendData as $k => $value) {
258
//is failed, try again later
259
$id = $value['id'];
@@ -277,7 +277,7 @@ class B2S_Heartbeat {
277
$wpdb->update('b2s_posts', $data, $where, array('%d'), array('%d'));
278
}
279
$tempData = array('action' => 'deleteUserSchedPost', 'data' => serialize($sendData));
280
- $result = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $tempData,90));
281
foreach ($sendData as $k => $value) {
282
//is failed, try again later
283
$id = $value['id'];
@@ -301,7 +301,7 @@ class B2S_Heartbeat {
301
$wpdb->update('b2s_posts', $data, $where, array('%d'), array('%d'));
302
}
303
$tempData = array('action' => 'deleteUserPublishPost', 'data' => serialize($sendData));
304
- $result = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $tempData,90));
305
foreach ($sendData as $k => $value) {
306
//is failed, try again later
307
$id = $value['id'];
62
$shipData = serialize($sendData);
63
if (!empty($shipData)) {
64
$data = array('action' => 'postSchedData', 'data' => $shipData);
65
+ $result = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $data, 90));
66
foreach ($postData as $k => $value) {
67
if (!isset($result->content) || !isset($result->content->{$value['id']})) {
68
$data = array('hook_action' => '1');
98
99
if (is_array($sendData) && !empty($sendData) && isset($sendData[0])) {
100
$tempData = array('action' => 'getSchedData', 'data' => serialize($sendData));
101
+ $schedResult = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $tempData, 90));
102
if ($schedResult->result == true) {
103
foreach ($schedResult->content as $k => $v) {
104
//V2
182
if ((int) $v->id > 0 && $publishTime != false) {
183
//since V4.9.1 - check by error is old scheduled instant sharing post
184
$shareApprove = (strtoupper($v->publish_error_code) == 'APPROVE') ? 1 : 0;
185
+
186
//Old since V.5.1.1
187
/* if (!empty($v->publish_error_code)) {
188
$sql = "SELECT details.network_id, details.network_type FROM b2s_posts as posts "
226
$wpdb->update('b2s_posts', $data, $where, array('%d'), array('%d'));
227
}
228
$tempData = array('action' => 'updateUserSchedTimePost', 'data' => serialize($sendData));
229
+ $result = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $tempData, 90));
230
foreach ($sendData as $k => $value) {
231
//is failed, try again later
232
$id = $value['id'];
253
$wpdb->update('b2s_posts', $data, $where, array('%d'), array('%d'));
254
}
255
$tempData = array('action' => 'updateUserSchedPost', 'data' => serialize($sendData));
256
+ $result = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $tempData, 90));
257
foreach ($sendData as $k => $value) {
258
//is failed, try again later
259
$id = $value['id'];
277
$wpdb->update('b2s_posts', $data, $where, array('%d'), array('%d'));
278
}
279
$tempData = array('action' => 'deleteUserSchedPost', 'data' => serialize($sendData));
280
+ $result = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $tempData, 90));
281
foreach ($sendData as $k => $value) {
282
//is failed, try again later
283
$id = $value['id'];
301
$wpdb->update('b2s_posts', $data, $where, array('%d'), array('%d'));
302
}
303
$tempData = array('action' => 'deleteUserPublishPost', 'data' => serialize($sendData));
304
+ $result = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $tempData, 90));
305
foreach ($sendData as $k => $value) {
306
//is failed, try again later
307
$id = $value['id'];
includes/B2S/Ship/Save.php CHANGED
@@ -126,7 +126,7 @@ class B2S_Ship_Save {
126
$postData = $this->postData['post'];
127
$this->postData['post'] = serialize($this->postData['post']);
128
$result = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $this->postData,90));
129
-
130
foreach ($postData as $k => $v) {
131
$found = false;
132
$networkId = (isset($v['network_id']) && (int) $v['network_id'] > 0) ? (int) $v['network_id'] : 0;
126
$postData = $this->postData['post'];
127
$this->postData['post'] = serialize($this->postData['post']);
128
$result = json_decode(B2S_Api_Post::post(B2S_PLUGIN_API_ENDPOINT, $this->postData,90));
129
+
130
foreach ($postData as $k => $v) {
131
$found = false;
132
$networkId = (isset($v['network_id']) && (int) $v['network_id'] > 0) ? (int) $v['network_id'] : 0;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: auto post, auto publish, social media scheduling, social media calendar, s
4
Donate link: http://www.blog2social.com
5
Requires at least: 4.2.2
6
Tested up to: 5.0.2
7
- Stable tag: 5.1.2
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -334,6 +334,8 @@ We use the official authentication oAUTH methods to third-party applications pro
334
9. Adjust the best times to schedule in the best time scheduler.
335
336
== Changelog ==
337
= 5.1.2 =
338
Usability Optimization
339
= 5.1.1 =
@@ -396,6 +398,8 @@ Usabilitiy and Performance Optimization. Select link format or image format indi
396
Usabilitiy and Performance Optimization. NEW: Select individual images per post. Select link format or image format for your posts. Select your own time zone for scheduling posts. Emoji support.
397
398
== Upgrade Notice ==
399
= 5.1.2 =
400
Usability Optimization
401
= 5.1.1 =
4
Donate link: http://www.blog2social.com
5
Requires at least: 4.2.2
6
Tested up to: 5.0.2
7
+ Stable tag: 5.1.3
8
License: GPLv3
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
334
9. Adjust the best times to schedule in the best time scheduler.
335
336
== Changelog ==
337
+ = 5.1.3 =
338
+ Usability Optimization
339
= 5.1.2 =
340
Usability Optimization
341
= 5.1.1 =
398
Usabilitiy and Performance Optimization. NEW: Select individual images per post. Select link format or image format for your posts. Select your own time zone for scheduling posts. Emoji support.
399
400
== Upgrade Notice ==
401
+ = 5.1.3 =
402
+ Usability Optimization
403
= 5.1.2 =
404
Usability Optimization
405
= 5.1.1 =