Blog2Social: Social Media Auto Post & Scheduler - Version 6.6.1

Version Description

Usability Optimization

Download this release

Release Info

Developer PR-Gateway
Plugin Icon 128x128 Blog2Social: Social Media Auto Post & Scheduler
Version 6.6.1
Comparing to
See all releases

Code changes from version 6.6.0 to 6.6.1

assets/js/b2s/curation.js CHANGED
@@ -34,7 +34,7 @@ jQuery(window).on("load", function () {
34
 
35
  jQuery(document).on('click', '.b2s-btn-curation-continue', function () {
36
  jQuery('#b2s-curation-input-url-help').hide();
37
- var re = new RegExp(/^(https?:\/\/)+[a-zA-Z0-99ÄÖÜöäü-]+(?:\.[a-zA-Z0-99ÄÖÜöäü-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=%.]+$/);
38
  var url = jQuery('#b2s-curation-input-url').val();
39
  if (re.test(url)) {
40
  jQuery('#b2s-curation-input-url').removeClass('error');
34
 
35
  jQuery(document).on('click', '.b2s-btn-curation-continue', function () {
36
  jQuery('#b2s-curation-input-url-help').hide();
37
+ var re = new RegExp(/^(https?:\/\/)+[a-zA-Z0-9\wÄÖÜÑÁÉÍÓÚÂÃÀÇÊÔÕÆÈËÎÏŒÙÛŸØÅöäüñáéíóúâãàçêôõæèëîïœùûÿøåß]+(?:\.[a-zA-Z0-9\wÄÖÜÑÁÉÍÓÚÂÃÀÇÊÔÕÆÈËÎÏŒÙÛŸØÅöäüñáéíóúâãàçêôõæèëîïœùûÿøåß]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=%.ÄÖÜÑÁÉÍÓÚÂÃÀÇÊÔÕÆÈËÎÏŒÙÛŸØÅöäüñáéíóúâãàçêôõæèëîïœùûÿøåß]+$/);
38
  var url = jQuery('#b2s-curation-input-url').val();
39
  if (re.test(url)) {
40
  jQuery('#b2s-curation-input-url').removeClass('error');
assets/js/b2s/ship.js CHANGED
@@ -1790,7 +1790,7 @@ jQuery(document).on('click', '.scroll-to-bottom', function () {
1790
  return false;
1791
  });
1792
  jQuery(document).on('click', '.b2s-post-item-details-preview-url-reload', function () {
1793
- var re = new RegExp(/^(https?:\/\/)+[a-zA-Z0-99ÄÖÜöäü-]+(?:\.[a-zA-Z0-99ÄÖÜöäü-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=%.]+$/);
1794
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
1795
  var url = jQuery('.b2s-post-item-details-item-url-input[data-network-auth-id="' + networkAuthId + '"]').val();
1796
  if (re.test(url)) {
@@ -2303,7 +2303,7 @@ jQuery.validator.addMethod("checkUrl", function (value, element, regexp) {
2303
  return this.optional(element) || re.test(value);
2304
  }, "Invalid Url");
2305
  jQuery.validator.addClassRules("b2s-post-item-details-item-url-input", {
2306
- checkUrl: /^(https?:\/\/)+[a-zA-Z0-99ÄÖÜöäü-]+(?:\.[a-zA-Z0-99ÄÖÜöäü-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=%.]+$/
2307
  });
2308
  //Twitter TOS 032018 - protected multiple accounts with same content to same time ( by all connections)
2309
  jQuery.validator.addMethod("unique", function (value, element, params) {
1790
  return false;
1791
  });
1792
  jQuery(document).on('click', '.b2s-post-item-details-preview-url-reload', function () {
1793
+ var re = new RegExp(/^(https?:\/\/)+[a-zA-Z0-9\wÄÖÜÑÁÉÍÓÚÂÃÀÇÊÔÕÆÈËÎÏŒÙÛŸØÅöäüñáéíóúâãàçêôõæèëîïœùûÿøåß]+(?:\.[a-zA-Z0-9\wÄÖÜÑÁÉÍÓÚÂÃÀÇÊÔÕÆÈËÎÏŒÙÛŸØÅöäüñáéíóúâãàçêôõæèëîïœùûÿøåß]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=%.ÄÖÜÑÁÉÍÓÚÂÃÀÇÊÔÕÆÈËÎÏŒÙÛŸØÅöäüñáéíóúâãàçêôõæèëîïœùûÿøåß]+$/);
1794
  var networkAuthId = jQuery(this).attr('data-network-auth-id');
1795
  var url = jQuery('.b2s-post-item-details-item-url-input[data-network-auth-id="' + networkAuthId + '"]').val();
1796
  if (re.test(url)) {
2303
  return this.optional(element) || re.test(value);
2304
  }, "Invalid Url");
2305
  jQuery.validator.addClassRules("b2s-post-item-details-item-url-input", {
2306
+ checkUrl: /^(https?:\/\/)+[a-zA-Z0-9\wÄÖÜÑÁÉÍÓÚÂÃÀÇÊÔÕÆÈËÎÏŒÙÛŸØÅöäüñáéíóúâãàçêôõæèëîïœùûÿøåß]+(?:\.[a-zA-Z0-9\wÄÖÜÑÁÉÍÓÚÂÃÀÇÊÔÕÆÈËÎÏŒÙÛŸØÅöäüñáéíóúâãàçêôõæèëîïœùûÿøåß]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=%.ÄÖÜÑÁÉÍÓÚÂÃÀÇÊÔÕÆÈËÎÏŒÙÛŸØÅöäüñáéíóúâãàçêôõæèëîïœùûÿøåß]+$/
2307
  });
2308
  //Twitter TOS 032018 - protected multiple accounts with same content to same time ( by all connections)
2309
  jQuery.validator.addMethod("unique", function (value, element, params) {
assets/js/b2s/support.js CHANGED
@@ -3,8 +3,7 @@ jQuery.noConflict();
3
 
4
  jQuery(document).ready(function () {
5
  getWidgetFaq();
6
- initTroubleshootTool();
7
- if (window.location.href.match('b2s-support-system-check') != null) {
8
  jQuery('.b2s-support-check-sytem').trigger('click');
9
  }
10
  if (window.location.href.match('b2s-support-sharing-debugger') != null) {
@@ -63,81 +62,83 @@ function base64EncodeUnicode(str) {
63
  return btoa(utf8Bytes);
64
  }
65
 
 
 
 
 
 
 
 
 
 
 
66
 
67
- function initTroubleshootTool() {
68
- firstClick = false;
69
- jQuery(document).on('click', '.b2s-support-check-sytem', function () {
70
- if (!firstClick) {
71
- jQuery('#b2s-reload-debug-btn').trigger('click');
72
- firstClick = true;
73
- }
74
- });
75
-
76
- jQuery(document).on('click', '#b2s-reload-debug-btn', function () {
77
- jQuery('.b2s-server-connection-fail').hide();
78
- jQuery('.b2s-support-fail').hide();
79
- jQuery('#b2s-main-debug').hide();
80
- jQuery('.b2s-loading-area').show();
81
-
82
- jQuery.ajax({
83
- url: ajaxurl,
84
- type: "GET",
85
- dataType: "json",
86
- cache: false,
87
- data: {'action': 'b2s_support_systemrequirements', 'b2s_security_nonce': jQuery('#b2s_security_nonce').val()},
88
- error: function () {
89
  jQuery('.b2s-server-connection-fail').show();
90
  jQuery('.b2s-loading-area').hide();
91
  jQuery('#b2s-main-debug').show();
92
  return false;
93
- },
94
- success: function (data) {
95
- if (typeof data === 'undefined' || data === null) {
 
 
 
 
 
96
  jQuery('.b2s-server-connection-fail').show();
97
  jQuery('.b2s-loading-area').hide();
98
  jQuery('#b2s-main-debug').show();
99
  return false;
100
- } else if (data.result != true) {
101
- if (data.error == 'nonce') {
102
- jQuery('.b2s-nonce-check-fail').show();
103
- }
104
- if (data.error == 'admin') {
105
- jQuery('.b2s-loading-area').hide();
106
- jQuery('#b2s-support-no-admin').show();
 
 
 
107
  } else {
108
- jQuery('.b2s-server-connection-fail').show();
109
- jQuery('.b2s-loading-area').hide();
110
- jQuery('#b2s-main-debug').show();
111
- return false;
112
  }
 
 
 
113
  } else {
114
- if (typeof data.htmlData !== 'undefined') {
115
- jQuery('#b2s-debug-htmlData').html(data.htmlData);
116
- if (typeof data.blogData !== 'undefined') {
117
- jQuery('#b2s-debug-export').removeClass('b2s-support-link-not-active');
118
- jQuery('#b2s-debug-export').attr(
119
- "href", "data:application/octet-stream;charset=utf-8;base64," +
120
- base64EncodeUnicode(JSON.stringify(data.blogData, undefined, 2))
121
- );
122
- } else {
123
- jQuery('#b2s-debug-export').addClass('b2s-support-link-not-active');
124
- }
125
- jQuery('.b2s-loading-area').hide();
126
- jQuery('#b2s-main-debug').show();
127
- return true;
128
- } else {
129
- jQuery('.b2s-server-connection-fail').show();
130
- jQuery('.b2s-loading-area').hide();
131
- jQuery('#b2s-main-debug').show();
132
- return false;
133
- }
134
  }
135
-
136
  }
137
- });
138
 
 
139
  });
140
- }
 
 
 
 
 
 
 
 
 
141
 
142
  jQuery(document).on('click', '#b2s-community-register', function() {
143
  jQuery('#b2s-community-username').removeClass('error');
3
 
4
  jQuery(document).ready(function () {
5
  getWidgetFaq();
6
+ if (window.location.href.match('b2s-support-check-system') != null) {
 
7
  jQuery('.b2s-support-check-sytem').trigger('click');
8
  }
9
  if (window.location.href.match('b2s-support-sharing-debugger') != null) {
62
  return btoa(utf8Bytes);
63
  }
64
 
65
+ jQuery(document).on('click', '.b2s-support-check-sytem', function () {
66
+
67
+ var heartbeat_status = true;
68
+ if (typeof wp.heartbeat == "undefined") {
69
+ heartbeat_status = false;
70
+ }
71
+ jQuery('.b2s-server-connection-fail').hide();
72
+ jQuery('.b2s-support-fail').hide();
73
+ jQuery('#b2s-main-debug').hide();
74
+ jQuery('.b2s-loading-area').show();
75
 
76
+ jQuery.ajax({
77
+ url: ajaxurl,
78
+ type: "GET",
79
+ dataType: "json",
80
+ cache: false,
81
+ data: {'action': 'b2s_support_systemrequirements', 'heartbeat_status': heartbeat_status, 'b2s_security_nonce': jQuery('#b2s_security_nonce').val()},
82
+ error: function () {
83
+ jQuery('.b2s-server-connection-fail').show();
84
+ jQuery('.b2s-loading-area').hide();
85
+ jQuery('#b2s-main-debug').show();
86
+ return false;
87
+ },
88
+ success: function (data) {
89
+ if (typeof data === 'undefined' || data === null) {
 
 
 
 
 
 
 
 
90
  jQuery('.b2s-server-connection-fail').show();
91
  jQuery('.b2s-loading-area').hide();
92
  jQuery('#b2s-main-debug').show();
93
  return false;
94
+ } else if (data.result != true) {
95
+ if (data.error == 'nonce') {
96
+ jQuery('.b2s-nonce-check-fail').show();
97
+ }
98
+ if (data.error == 'admin') {
99
+ jQuery('.b2s-loading-area').hide();
100
+ jQuery('#b2s-support-no-admin').show();
101
+ } else {
102
  jQuery('.b2s-server-connection-fail').show();
103
  jQuery('.b2s-loading-area').hide();
104
  jQuery('#b2s-main-debug').show();
105
  return false;
106
+ }
107
+ } else {
108
+ if (typeof data.htmlData !== 'undefined') {
109
+ jQuery('#b2s-debug-htmlData').html(data.htmlData);
110
+ if (typeof data.blogData !== 'undefined') {
111
+ jQuery('#b2s-debug-export').removeClass('b2s-support-link-not-active');
112
+ jQuery('#b2s-debug-export').attr(
113
+ "href", "data:application/octet-stream;charset=utf-8;base64," +
114
+ base64EncodeUnicode(JSON.stringify(data.blogData, undefined, 2))
115
+ );
116
  } else {
117
+ jQuery('#b2s-debug-export').addClass('b2s-support-link-not-active');
 
 
 
118
  }
119
+ jQuery('.b2s-loading-area').hide();
120
+ jQuery('#b2s-main-debug').show();
121
+ return true;
122
  } else {
123
+ jQuery('.b2s-server-connection-fail').show();
124
+ jQuery('.b2s-loading-area').hide();
125
+ jQuery('#b2s-main-debug').show();
126
+ return false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  }
 
128
  }
 
129
 
130
+ }
131
  });
132
+ });
133
+
134
+ jQuery(document).on('click', '#b2s-reload-debug-btn', function () {
135
+ if (window.location.href.match('b2s-support-check-system') != null) {
136
+ location.reload();
137
+ } else {
138
+ window.location.href = window.location.href + '#b2s-support-check-system';
139
+ location.reload();
140
+ }
141
+ });
142
 
143
  jQuery(document).on('click', '#b2s-community-register', function() {
144
  jQuery('#b2s-community-username').removeClass('error');
assets/js/b2s/wp/post-box.js CHANGED
@@ -336,7 +336,7 @@ jQuery(document).on('change', '#b2s-post-meta-box-profil-dropdown', function ()
336
  });
337
 
338
  function b2sIsValidUrl(str) {
339
- var pattern = new RegExp(/^(https?:\/\/)?[a-zA-Z0-99ÄÖÜöäü-]+([\-\.]{1}[a-zA-Z0-99ÄÖÜöäü-]+)*\.[a-zA-Z0-9-]{2,20}(:[0-9]{1,5})?(\/.*)?$/);
340
  if (!pattern.test(str)) {
341
  return false;
342
  }
336
  });
337
 
338
  function b2sIsValidUrl(str) {
339
+ var pattern = new RegExp(/^(https?:\/\/)+[a-zA-Z0-9\wÄÖÜÑÁÉÍÓÚÂÃÀÇÊÔÕÆÈËÎÏŒÙÛŸØÅöäüñáéíóúâãàçêôõæèëîïœùûÿøåß]+(?:\.[a-zA-Z0-9\wÄÖÜÑÁÉÍÓÚÂÃÀÇÊÔÕÆÈËÎÏŒÙÛŸØÅöäüñáéíóúâãàçêôõæèëîïœùûÿøåß]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=%.ÄÖÜÑÁÉÍÓÚÂÃÀÇÊÔÕÆÈËÎÏŒÙÛŸØÅöäüñáéíóúâãàçêôõæèëîïœùûÿøåß]+$/);
340
  if (!pattern.test(str)) {
341
  return false;
342
  }
blog2social.php CHANGED
@@ -6,12 +6,12 @@
6
  * Author: Blog2Social, Adenion
7
  * Text Domain: blog2social
8
  * Domain Path: /languages
9
- * Version: 6.6.0
10
  * Author URI: https://www.blog2social.com
11
  * License: GPL2+
12
  */
13
 
14
- define('B2S_PLUGIN_VERSION', '660');
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.6.1
10
  * Author URI: https://www.blog2social.com
11
  * License: GPL2+
12
  */
13
 
14
+ define('B2S_PLUGIN_VERSION', '661');
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/Ajax/Get.php CHANGED
@@ -617,7 +617,8 @@ class Ajax_Get {
617
  wp_die();
618
  }
619
  require_once (B2S_PLUGIN_DIR . 'includes/B2S/Support/Check/System.php');
620
- $support = new B2S_Support_Check_System();
 
621
  $htmlData = $support->htmlData();
622
  $blogData = $support->blogData();
623
  if (empty($htmlData) || empty($blogData)) {
617
  wp_die();
618
  }
619
  require_once (B2S_PLUGIN_DIR . 'includes/B2S/Support/Check/System.php');
620
+ $heartbeat_status = (isset($_GET['heartbeat_status']) && $_GET['heartbeat_status'] == 'false') ? false : true;
621
+ $support = new B2S_Support_Check_System($heartbeat_status);
622
  $htmlData = $support->htmlData();
623
  $blogData = $support->blogData();
624
  if (empty($htmlData) || empty($blogData)) {
includes/B2S/Support/Check/System.php CHANGED
@@ -5,10 +5,10 @@ class B2S_Support_Check_System {
5
  private $systemData = array();
6
  private $pluginData = array();
7
 
8
- public function __construct() {
9
  $this->systemData['PLUGINVERSION'] = array("system" => $this->getB2sPluginVersion(), "req" => $this->getB2sNeededVersion(), "type" => "version", "name" => "Blog2Social Version", "link" => get_option('home') . ((substr(get_option('home'), -1, 1) == '/') ? '' : '/') . 'wp-admin/plugins.php');
10
  $this->systemData['WORDPRESSVERSION'] = array("system" => $this->getWordpressVersion(), "req" => B2S_PLUGIN_SYSTEMREQUIREMENT_WORDPRESSVERSION, "type" => "version", "name" => "Wordpress Version", "link" => B2S_Tools::getSupportLink("system_requirements"));
11
- $this->systemData['HEARTBEAT'] = array("system" => $this->getHeartbeat(), "req" => B2S_PLUGIN_SYSTEMREQUIREMENT_HEARTBEAT, "type" => "active", "name" => "Wordpress Heartbeat", "link" => B2S_Tools::getSupportLink("system_requirements"));
12
  $this->systemData['PHPVERSION'] = array("system" => $this->getPhpVersion(), "req" => B2S_PLUGIN_SYSTEMREQUIREMENT_PHPVERSION, "type" => "version", "name" => "PHP Version", "link" => B2S_Tools::getSupportLink("system_requirements"));
13
  $this->systemData['PHPCURL'] = array("system" => $this->getPhpCurl(), "req" => B2S_PLUGIN_SYSTEMREQUIREMENT_PHPCURL, "type" => "active", "name" => "PHP Curl", "link" => B2S_Tools::getSupportLink("system_requirements"));
14
  $this->systemData['PHPDOM'] = array("system" => $this->getPhpDom(), "req" => B2S_PLUGIN_SYSTEMREQUIREMENT_PHPDOM, "type" => "active", "name" => "PHP Dom", "link" => B2S_Tools::getSupportLink("system_requirements"));
@@ -146,10 +146,11 @@ class B2S_Support_Check_System {
146
  return false;
147
  }*/
148
 
149
- private function getHeartbeat() {
 
150
  return wp_script_is('heartbeat', 'registered');
151
- }
152
-
153
  private function getPhpCurl() {
154
  return function_exists('curl_version');
155
  }
5
  private $systemData = array();
6
  private $pluginData = array();
7
 
8
+ public function __construct($heartbeat_status = true) {
9
  $this->systemData['PLUGINVERSION'] = array("system" => $this->getB2sPluginVersion(), "req" => $this->getB2sNeededVersion(), "type" => "version", "name" => "Blog2Social Version", "link" => get_option('home') . ((substr(get_option('home'), -1, 1) == '/') ? '' : '/') . 'wp-admin/plugins.php');
10
  $this->systemData['WORDPRESSVERSION'] = array("system" => $this->getWordpressVersion(), "req" => B2S_PLUGIN_SYSTEMREQUIREMENT_WORDPRESSVERSION, "type" => "version", "name" => "Wordpress Version", "link" => B2S_Tools::getSupportLink("system_requirements"));
11
+ $this->systemData['HEARTBEAT'] = array("system" => $heartbeat_status, "req" => B2S_PLUGIN_SYSTEMREQUIREMENT_HEARTBEAT, "type" => "active", "name" => "Wordpress Heartbeat", "link" => B2S_Tools::getSupportLink("system_requirements"));
12
  $this->systemData['PHPVERSION'] = array("system" => $this->getPhpVersion(), "req" => B2S_PLUGIN_SYSTEMREQUIREMENT_PHPVERSION, "type" => "version", "name" => "PHP Version", "link" => B2S_Tools::getSupportLink("system_requirements"));
13
  $this->systemData['PHPCURL'] = array("system" => $this->getPhpCurl(), "req" => B2S_PLUGIN_SYSTEMREQUIREMENT_PHPCURL, "type" => "active", "name" => "PHP Curl", "link" => B2S_Tools::getSupportLink("system_requirements"));
14
  $this->systemData['PHPDOM'] = array("system" => $this->getPhpDom(), "req" => B2S_PLUGIN_SYSTEMREQUIREMENT_PHPDOM, "type" => "active", "name" => "PHP Dom", "link" => B2S_Tools::getSupportLink("system_requirements"));
146
  return false;
147
  }*/
148
 
149
+ //Since V6.6.0.5 - disabled php heartbeat check - is checked in javascript
150
+ /*private function getHeartbeat() {
151
  return wp_script_is('heartbeat', 'registered');
152
+ }*/
153
+
154
  private function getPhpCurl() {
155
  return function_exists('curl_version');
156
  }
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.6
8
- Stable tag: 6.6.0
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -221,6 +221,8 @@ To get started with the basics of Blog2Social and maybe find some useful tips an
221
  7. Keep track of your shared posts and scheduling plan with the Social Media Calendar.
222
 
223
  == Changelog ==
 
 
224
  = 6.6.0 =
225
  Share text-posts and video links, Instagram hashtag shuffle and Telegram add-on for your Smart or Pro license
226
  = 6.5.8 =
@@ -309,6 +311,8 @@ Usability Optimization
309
  Content Curation with links, WooCommerce compatibility, gutenberg editor compatibility
310
 
311
  == Upgrade Notice ==
 
 
312
  = 6.6.0 =
313
  Share text-posts and video links, Instagram hashtag shuffle and Telegram add-on for your Smart or Pro license
314
  = 6.5.8 =
5
  Donate link: https://paypal.me/adenion
6
  Requires at least: 4.7.0
7
  Tested up to: 5.6
8
+ Stable tag: 6.6.1
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
221
  7. Keep track of your shared posts and scheduling plan with the Social Media Calendar.
222
 
223
  == Changelog ==
224
+ = 6.6.1 =
225
+ Usability Optimization
226
  = 6.6.0 =
227
  Share text-posts and video links, Instagram hashtag shuffle and Telegram add-on for your Smart or Pro license
228
  = 6.5.8 =
311
  Content Curation with links, WooCommerce compatibility, gutenberg editor compatibility
312
 
313
  == Upgrade Notice ==
314
+ = 6.6.1 =
315
+ Usability Optimization
316
  = 6.6.0 =
317
  Share text-posts and video links, Instagram hashtag shuffle and Telegram add-on for your Smart or Pro license
318
  = 6.5.8 =