Version Description
Bugfixing Installing
Download this release
Release Info
Developer | PR-Gateway |
Plugin | Blog2Social: Social Media Auto Post & Scheduler |
Version | 6.9.1 |
Comparing to | |
See all releases |
Code changes from version 6.9.2 to 6.9.1
- blog2social.php +2 -2
- includes/B2S/Api/Network/Pinterest.php +2 -15
- readme.txt +1 -5
blog2social.php
CHANGED
@@ -6,12 +6,12 @@
|
|
6 |
* Author: Blog2Social, Adenion
|
7 |
* Text Domain: blog2social
|
8 |
* Domain Path: /languages
|
9 |
-
* Version: 6.9.
|
10 |
* Author URI: https://www.blog2social.com
|
11 |
* License: GPL2+
|
12 |
*/
|
13 |
|
14 |
-
define('B2S_PLUGIN_VERSION', '
|
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: 6.9.1
|
10 |
* Author URI: https://www.blog2social.com
|
11 |
* License: GPL2+
|
12 |
*/
|
13 |
|
14 |
+
define('B2S_PLUGIN_VERSION', '691');
|
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/Api/Network/Pinterest.php
CHANGED
@@ -111,7 +111,7 @@ class B2S_Api_Network_Pinterest {
|
|
111 |
}
|
112 |
if (empty($csrfToken)) {
|
113 |
$error_data = trim(str_replace(array("\r\n", "\r", "\n"), " | ", strip_tags($this->cutFromTo($content, '</head>', '</body>'))));
|
114 |
-
return array('error' => 1, 'error_pos' => 2, 'location' => $this->route . 'login/', 'error_data' => 'CSRF verification failed - RESPONSE: ' . serialize($error_data) . ' COOKIE: ' . serialize($cookie)
|
115 |
}
|
116 |
$headerData = $this->setHeader($this->route . 'login/', $this->route, 'POST', true);
|
117 |
$headerData['X-APP-VERSION'] = $appVersion;
|
@@ -137,7 +137,7 @@ class B2S_Api_Network_Pinterest {
|
|
137 |
$content = $result['body'];
|
138 |
$response = json_decode($content, true);
|
139 |
} else {
|
140 |
-
return array('error' => 1, 'error_pos' => 5, 'error_data' => serialize($result)
|
141 |
}
|
142 |
if (is_array($response) && empty($response['resource_response']['error'])) {
|
143 |
$this->cookie = $result['cookies'];
|
@@ -170,14 +170,6 @@ class B2S_Api_Network_Pinterest {
|
|
170 |
//$this->setRoute();
|
171 |
$headerData = $this->setHeader($this->route, $this->route, 'JSON', true, false);
|
172 |
$headerData['X-APP-VERSION'] = $this->appVersion;
|
173 |
-
if(is_array($this->cookie) && !empty($this->cookie)) {
|
174 |
-
foreach($this->cookie as $cookie) {
|
175 |
-
if(isset($cookie->name) && !empty($cookie->name) && $cookie->name == "_auth" && isset($cookie->domain) && !empty($cookie->domain)) {
|
176 |
-
$this->route = 'https://' . $cookie->domain . '/';
|
177 |
-
break;
|
178 |
-
}
|
179 |
-
}
|
180 |
-
}
|
181 |
$pinBoardUrl = $this->route . 'resource/BoardPickerBoardsResource/get/';
|
182 |
$requestData = array('headers' => $headerData, 'cookies' => $this->cookie, 'timeout' => $this->timeout);
|
183 |
$result = wp_remote_get($pinBoardUrl, $requestData);
|
@@ -186,11 +178,6 @@ class B2S_Api_Network_Pinterest {
|
|
186 |
}
|
187 |
$content = $result['body'];
|
188 |
$response = json_decode($content, true);
|
189 |
-
if($response == null || !is_array($response) || empty($response)) {
|
190 |
-
if(isset($result['response']) && !empty($result['response']) && isset($result['response']['code']) && $result['response']['code'] == 403) {
|
191 |
-
return array('error' => 403, 'error_pos' => 1, 'error_data' => 'access_denied', 'error_code' => 'limit');
|
192 |
-
}
|
193 |
-
}
|
194 |
if (!empty($response['resource_data_cache']) || !empty($response['resource_response'])) {
|
195 |
if (!empty($response['resource_data_cache'])) {
|
196 |
$boardsData = $response['resource_data_cache'];
|
111 |
}
|
112 |
if (empty($csrfToken)) {
|
113 |
$error_data = trim(str_replace(array("\r\n", "\r", "\n"), " | ", strip_tags($this->cutFromTo($content, '</head>', '</body>'))));
|
114 |
+
return array('error' => 1, 'error_pos' => 2, 'location' => $this->route . 'login/', 'error_data' => 'CSRF verification failed - RESPONSE: ' . serialize($error_data) . ' COOKIE: ' . serialize($cookie));
|
115 |
}
|
116 |
$headerData = $this->setHeader($this->route . 'login/', $this->route, 'POST', true);
|
117 |
$headerData['X-APP-VERSION'] = $appVersion;
|
137 |
$content = $result['body'];
|
138 |
$response = json_decode($content, true);
|
139 |
} else {
|
140 |
+
return array('error' => 1, 'error_pos' => 5, 'error_data' => serialize($result));
|
141 |
}
|
142 |
if (is_array($response) && empty($response['resource_response']['error'])) {
|
143 |
$this->cookie = $result['cookies'];
|
170 |
//$this->setRoute();
|
171 |
$headerData = $this->setHeader($this->route, $this->route, 'JSON', true, false);
|
172 |
$headerData['X-APP-VERSION'] = $this->appVersion;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
$pinBoardUrl = $this->route . 'resource/BoardPickerBoardsResource/get/';
|
174 |
$requestData = array('headers' => $headerData, 'cookies' => $this->cookie, 'timeout' => $this->timeout);
|
175 |
$result = wp_remote_get($pinBoardUrl, $requestData);
|
178 |
}
|
179 |
$content = $result['body'];
|
180 |
$response = json_decode($content, true);
|
|
|
|
|
|
|
|
|
|
|
181 |
if (!empty($response['resource_data_cache']) || !empty($response['resource_response'])) {
|
182 |
if (!empty($response['resource_data_cache'])) {
|
183 |
$boardsData = $response['resource_data_cache'];
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: auto post, auto publish, social media scheduling, social media calendar, s
|
|
5 |
Donate link: https://paypal.me/adenion
|
6 |
Requires at least: 4.7.0
|
7 |
Tested up to: 5.9
|
8 |
-
Stable tag: 6.9.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -234,8 +234,6 @@ To get started with the basics of Blog2Social and maybe find some useful tips an
|
|
234 |
7. Keep track of your shared posts and scheduling plan with the Social Media Calendar.
|
235 |
|
236 |
== Changelog ==
|
237 |
-
= 6.9.2 =
|
238 |
-
Bugfixing Pinterest Connection
|
239 |
= 6.9.1 =
|
240 |
Bugfixing Installing
|
241 |
= 6.9.0 =
|
@@ -312,8 +310,6 @@ Usability Optimization, Rebrandly integration, url parameter settings
|
|
312 |
New Image Posts, Imgur, Animated Gifs and Emojis
|
313 |
|
314 |
== Upgrade Notice ==
|
315 |
-
= 6.9.2 =
|
316 |
-
Bugfixing Pinterest Connection
|
317 |
= 6.9.1 =
|
318 |
Bugfixing Installing
|
319 |
= 6.9.0 =
|
5 |
Donate link: https://paypal.me/adenion
|
6 |
Requires at least: 4.7.0
|
7 |
Tested up to: 5.9
|
8 |
+
Stable tag: 6.9.1
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
234 |
7. Keep track of your shared posts and scheduling plan with the Social Media Calendar.
|
235 |
|
236 |
== Changelog ==
|
|
|
|
|
237 |
= 6.9.1 =
|
238 |
Bugfixing Installing
|
239 |
= 6.9.0 =
|
310 |
New Image Posts, Imgur, Animated Gifs and Emojis
|
311 |
|
312 |
== Upgrade Notice ==
|
|
|
|
|
313 |
= 6.9.1 =
|
314 |
Bugfixing Installing
|
315 |
= 6.9.0 =
|