Version Description
Usability Optimization
Download this release
Release Info
Developer | PR-Gateway |
Plugin | Blog2Social: Social Media Auto Post & Scheduler |
Version | 6.4.1 |
Comparing to | |
See all releases |
Code changes from version 6.4.0 to 6.4.1
- blog2social.php +2 -2
- includes/B2S/AutoPost.php +5 -0
- includes/B2S/RePost/Save.php +5 -0
- includes/B2S/Ship/Item.php +10 -1
- readme.txt +5 -1
blog2social.php
CHANGED
@@ -6,12 +6,12 @@
|
|
6 |
* Author: Blog2Social, Adenion
|
7 |
* Text Domain: blog2social
|
8 |
* Domain Path: /languages
|
9 |
-
* Version: 6.4.
|
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.4.1
|
10 |
* Author URI: https://www.blog2social.com
|
11 |
* License: GPL2+
|
12 |
*/
|
13 |
|
14 |
+
define('B2S_PLUGIN_VERSION', '641');
|
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/AutoPost.php
CHANGED
@@ -117,6 +117,11 @@ class B2S_AutoPost {
|
|
117 |
|
118 |
if (in_array($networkId, $this->allowHtml)) {
|
119 |
$postData['content'] = preg_replace("/\\n/", "<br>", $postData['content']);
|
|
|
|
|
|
|
|
|
|
|
120 |
}
|
121 |
|
122 |
if(isset($tempOptionPostFormat[$networkId][$networkType]['short_text']['limit']) && (int) $tempOptionPostFormat[$networkId][$networkType]['short_text']['limit'] > 0) {
|
117 |
|
118 |
if (in_array($networkId, $this->allowHtml)) {
|
119 |
$postData['content'] = preg_replace("/\\n/", "<br>", $postData['content']);
|
120 |
+
|
121 |
+
//Feature Image Html-Network
|
122 |
+
if (!empty($this->imageUrl)) {
|
123 |
+
$postData['content'] = '<img src="' . esc_url($this->imageUrl) . '" alt="' . esc_attr($title) . '"/><br>' . $postData['content'];
|
124 |
+
}
|
125 |
}
|
126 |
|
127 |
if(isset($tempOptionPostFormat[$networkId][$networkType]['short_text']['limit']) && (int) $tempOptionPostFormat[$networkId][$networkType]['short_text']['limit'] > 0) {
|
includes/B2S/RePost/Save.php
CHANGED
@@ -210,6 +210,11 @@ class B2S_RePost_Save {
|
|
210 |
|
211 |
if (in_array($networkId, $this->allowHtml)) {
|
212 |
$postData['content'] = preg_replace("/\\n/", "<br>", $postData['content']);
|
|
|
|
|
|
|
|
|
|
|
213 |
}
|
214 |
|
215 |
if(isset($tempOptionPostFormat[$networkId][$networkType]['short_text']['limit']) && (int) $tempOptionPostFormat[$networkId][$networkType]['short_text']['limit'] > 0) {
|
210 |
|
211 |
if (in_array($networkId, $this->allowHtml)) {
|
212 |
$postData['content'] = preg_replace("/\\n/", "<br>", $postData['content']);
|
213 |
+
|
214 |
+
//Feature Image Html-Network
|
215 |
+
if (!empty($this->imageUrl)) {
|
216 |
+
$postData['content'] = '<img src="' . esc_url($this->imageUrl) . '" alt="' . esc_attr($title) . '"/><br>' . $postData['content'];
|
217 |
+
}
|
218 |
}
|
219 |
|
220 |
if(isset($tempOptionPostFormat[$networkId][$networkType]['short_text']['limit']) && (int) $tempOptionPostFormat[$networkId][$networkType]['short_text']['limit'] > 0) {
|
includes/B2S/Ship/Item.php
CHANGED
@@ -175,6 +175,15 @@ class B2S_Ship_Item {
|
|
175 |
} else {
|
176 |
if (array_key_exists($data->networkId, $this->post_template)) {
|
177 |
$message = $this->getMessagebyTemplate($data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
178 |
} else {
|
179 |
if (isset($this->setShortTextProfile[$data->networkId]) && (int) $this->setShortTextProfile[$data->networkId] > 0) {
|
180 |
//$preContent = ($data->networkId == 2) ? B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang) : B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, false, (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang);
|
@@ -191,7 +200,7 @@ class B2S_Ship_Item {
|
|
191 |
$featuredImage = wp_get_attachment_url(get_post_thumbnail_id($this->postId));
|
192 |
if ($featuredImage !== false) {
|
193 |
$title = in_array($data->networkId, $this->allowNoEmoji) ? B2S_Util::remove4byte(B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang);
|
194 |
-
$message = '<img class="b2s-post-item-details-image-html-src" src="' . esc_url($featuredImage) . '" alt="' . esc_attr($title) . '"/><br
|
195 |
}
|
196 |
}
|
197 |
|
175 |
} else {
|
176 |
if (array_key_exists($data->networkId, $this->post_template)) {
|
177 |
$message = $this->getMessagebyTemplate($data);
|
178 |
+
|
179 |
+
//Feature Image Html-Network
|
180 |
+
if (in_array($data->networkId, $this->allowHtml)) {
|
181 |
+
$featuredImage = wp_get_attachment_url(get_post_thumbnail_id($this->postId));
|
182 |
+
if ($featuredImage !== false) {
|
183 |
+
$title = in_array($data->networkId, $this->allowNoEmoji) ? B2S_Util::remove4byte(B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang);
|
184 |
+
$message = '<img class="b2s-post-item-details-image-html-src" src="' . esc_url($featuredImage) . '" alt="' . esc_attr($title) . '"/><br>' . $message;
|
185 |
+
}
|
186 |
+
}
|
187 |
} else {
|
188 |
if (isset($this->setShortTextProfile[$data->networkId]) && (int) $this->setShortTextProfile[$data->networkId] > 0) {
|
189 |
//$preContent = ($data->networkId == 2) ? B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang) : B2S_Util::prepareContent($this->postId, $this->postData->post_content, $this->postUrl, false, (in_array($data->networkId, $this->allowNoEmoji) ? false : true), $this->userLang);
|
200 |
$featuredImage = wp_get_attachment_url(get_post_thumbnail_id($this->postId));
|
201 |
if ($featuredImage !== false) {
|
202 |
$title = in_array($data->networkId, $this->allowNoEmoji) ? B2S_Util::remove4byte(B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang)) : B2S_Util::getTitleByLanguage($this->postData->post_title, $this->userLang);
|
203 |
+
$message = '<img class="b2s-post-item-details-image-html-src" src="' . esc_url($featuredImage) . '" alt="' . esc_attr($title) . '"/><br>' . $message;
|
204 |
}
|
205 |
}
|
206 |
|
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.4
|
8 |
-
Stable tag: 6.4.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -218,6 +218,8 @@ To get started with the basics of Blog2Social and maybe find some useful tips an
|
|
218 |
7. Keep track of your shared posts and scheduling plan with the Social Media Calendar.
|
219 |
|
220 |
== Changelog ==
|
|
|
|
|
221 |
= 6.4.0 =
|
222 |
New Blog2Social Posting Templates
|
223 |
= 6.3.1 =
|
@@ -282,6 +284,8 @@ Usability Optimization
|
|
282 |
Content Curation with links, WooCommerce compatibility, gutenberg editor compatibility
|
283 |
|
284 |
== Upgrade Notice ==
|
|
|
|
|
285 |
= 6.4.0 =
|
286 |
New Blog2Social Posting Templates
|
287 |
= 6.3.1 =
|
5 |
Donate link: https://paypal.me/adenion
|
6 |
Requires at least: 4.7.0
|
7 |
Tested up to: 5.4
|
8 |
+
Stable tag: 6.4.1
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
218 |
7. Keep track of your shared posts and scheduling plan with the Social Media Calendar.
|
219 |
|
220 |
== Changelog ==
|
221 |
+
= 6.4.1 =
|
222 |
+
Usability Optimization
|
223 |
= 6.4.0 =
|
224 |
New Blog2Social Posting Templates
|
225 |
= 6.3.1 =
|
284 |
Content Curation with links, WooCommerce compatibility, gutenberg editor compatibility
|
285 |
|
286 |
== Upgrade Notice ==
|
287 |
+
= 6.4.1 =
|
288 |
+
Usability Optimization
|
289 |
= 6.4.0 =
|
290 |
New Blog2Social Posting Templates
|
291 |
= 6.3.1 =
|