Blog2Social: Social Media Auto Post & Scheduler - Version 5.0.3

Version Description

Usability Optimization

Download this release

Release Info

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

Code changes from version 5.0.2 to 5.0.3

Files changed (4) hide show
  1. blog2social.php +2 -3
  2. includes/Ajax/Post.php +1 -1
  3. includes/Loader.php +4 -2
  4. readme.txt +11 -1
blog2social.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  /*
4
  * Plugin Name:Blog2Social: Social Media Auto Post & Scheduler
5
  * Plugin URI: https://www.blog2social.com
@@ -7,12 +6,12 @@
7
  * Author: Blog2Social, Adenion
8
  * Text Domain: blog2social
9
  * Domain Path: /languages
10
- * Version: 5.0.2
11
  * Author URI: https://www.blog2social.com
12
  * License: GPL2+
13
  */
14
  //B2SDefine
15
- define('B2S_PLUGIN_VERSION', '502');
16
  define('B2S_PLUGIN_LANGUAGE', serialize(array('de_DE', 'en_US')));
17
  define('B2S_PLUGIN_DIR', plugin_dir_path(__FILE__));
18
  define('B2S_PLUGIN_URL', plugin_dir_url(__FILE__));
1
  <?php
 
2
  /*
3
  * Plugin Name:Blog2Social: Social Media Auto Post & Scheduler
4
  * Plugin URI: https://www.blog2social.com
6
  * Author: Blog2Social, Adenion
7
  * Text Domain: blog2social
8
  * Domain Path: /languages
9
+ * Version: 5.0.3
10
  * Author URI: https://www.blog2social.com
11
  * License: GPL2+
12
  */
13
  //B2SDefine
14
+ define('B2S_PLUGIN_VERSION', '503');
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/Post.php CHANGED
@@ -837,7 +837,7 @@ class Ajax_Post {
837
  }
838
 
839
  public function saveAuthToSettings() {
840
- if (isset($_POST['mandantId']) && isset($_POST['networkAuthId'])) {
841
  global $wpdb;
842
  $mandantCount = $wpdb->get_var($wpdb->prepare("SELECT COUNT(mandant_id)FROM b2s_user_network_settings WHERE mandant_id =%d AND blog_user_id=%d ", $_POST['mandandId'], B2S_PLUGIN_BLOG_USER_ID));
843
  if ($mandantCount > 0) {
837
  }
838
 
839
  public function saveAuthToSettings() {
840
+ if (isset($_POST['mandandId']) && isset($_POST['networkAuthId'])) {
841
  global $wpdb;
842
  $mandantCount = $wpdb->get_var($wpdb->prepare("SELECT COUNT(mandant_id)FROM b2s_user_network_settings WHERE mandant_id =%d AND blog_user_id=%d ", $_POST['mandandId'], B2S_PLUGIN_BLOG_USER_ID));
843
  if ($mandantCount > 0) {
includes/Loader.php CHANGED
@@ -284,6 +284,7 @@ class B2S_Loader {
284
  }
285
 
286
  public function b2s_load_post_box() {
 
287
  $post_types = get_post_types(array('public' => true));
288
  if (is_array($post_types) && !empty($post_types)) {
289
  foreach ($post_types as $post_type) {
@@ -321,7 +322,7 @@ class B2S_Loader {
321
 
322
  public function b2s_save_post_box() {
323
 
324
-
325
  if (!isset($_POST['wp-preview']) || (isset($_POST['wp-preview']) && $_POST['wp-preview'] != 'dopreview')) {
326
  if (isset($_POST['post_ID']) && (int) $_POST['post_ID'] > 0) {
327
  //Gutenberg WP V5.0 - B2S V5.1.0 optimization
@@ -522,6 +523,7 @@ class B2S_Loader {
522
  }
523
  }
524
  }
 
525
 
526
  public function b2s_add_param_auto_share_meta_box($location) {
527
  remove_filter('redirect_post_location', array($this, 'b2s_add_param_auto_share_meta_box'));
@@ -547,7 +549,7 @@ class B2S_Loader {
547
  if ((int) $b2sAction == 1) {
548
  $b2sLink = get_option('siteurl') . ((substr(get_option('siteurl'), -1, 1) == '/') ? '' : '/') . 'wp-admin/admin.php?page=';
549
  if (isset($_GET['b2s_update_publish_date']) && !empty($_GET['b2s_update_publish_date'])) {
550
- $publishDate = htmlspecialchars($_GET['b2s_update_publish_date']);
551
  echo '<div class="updated"><p>' . __('This post will be shared into your social media on', 'blog2social') . ' ' . $publishDate . ' <a target="_blank" href="' . $b2sLink . 'blog2social-sched">' . __('show details', 'blog2social') . '</a></p></div>';
552
  } else {
553
  echo '<div class="updated"><p>' . __('This post will be shared on social media in 2-3 minutes!', 'blog2social') . ' <a target="_blank" href="' . $b2sLink . 'blog2social-publish">' . __('show details', 'blog2social') . '</a></p></div>';
284
  }
285
 
286
  public function b2s_load_post_box() {
287
+
288
  $post_types = get_post_types(array('public' => true));
289
  if (is_array($post_types) && !empty($post_types)) {
290
  foreach ($post_types as $post_type) {
322
 
323
  public function b2s_save_post_box() {
324
 
325
+ if(!isset($_POST['wphb-clear-cache'])){ // WP-Hummingbird BTN clear cache - protection
326
  if (!isset($_POST['wp-preview']) || (isset($_POST['wp-preview']) && $_POST['wp-preview'] != 'dopreview')) {
327
  if (isset($_POST['post_ID']) && (int) $_POST['post_ID'] > 0) {
328
  //Gutenberg WP V5.0 - B2S V5.1.0 optimization
523
  }
524
  }
525
  }
526
+ }
527
 
528
  public function b2s_add_param_auto_share_meta_box($location) {
529
  remove_filter('redirect_post_location', array($this, 'b2s_add_param_auto_share_meta_box'));
549
  if ((int) $b2sAction == 1) {
550
  $b2sLink = get_option('siteurl') . ((substr(get_option('siteurl'), -1, 1) == '/') ? '' : '/') . 'wp-admin/admin.php?page=';
551
  if (isset($_GET['b2s_update_publish_date']) && !empty($_GET['b2s_update_publish_date'])) {
552
+ $publishDate = htmlspecialchars($_GET['b2s_update_publish_date']);
553
  echo '<div class="updated"><p>' . __('This post will be shared into your social media on', 'blog2social') . ' ' . $publishDate . ' <a target="_blank" href="' . $b2sLink . 'blog2social-sched">' . __('show details', 'blog2social') . '</a></p></div>';
554
  } else {
555
  echo '<div class="updated"><p>' . __('This post will be shared on social media in 2-3 minutes!', 'blog2social') . ' <a target="_blank" href="' . $b2sLink . 'blog2social-publish">' . __('show details', 'blog2social') . '</a></p></div>';
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: 4.9.8
7
- Stable tag: 5.0.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -75,6 +75,12 @@ With Blog2Social you can choose between two general options for sharing your con
75
  * German
76
  * French
77
 
 
 
 
 
 
 
78
  = Supported Networks =
79
 
80
  **Social Networks**
@@ -328,6 +334,8 @@ We use the official authentication oAUTH methods to third-party applications pro
328
  9. Adjust the best times to schedule in the best time scheduler.
329
 
330
  == Changelog ==
 
 
331
  = 5.0.2 =
332
  Usability Optimization
333
  = 5.0.1 =
@@ -380,6 +388,8 @@ Usabilitiy and Performance Optimization. Select link format or image format indi
380
  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.
381
 
382
  == Upgrade Notice ==
 
 
383
  = 5.0.2 =
384
  Usability Optimization
385
  = 5.0.1 =
4
  Donate link: http://www.blog2social.com
5
  Requires at least: 4.2.2
6
  Tested up to: 4.9.8
7
+ Stable tag: 5.0.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
75
  * German
76
  * French
77
 
78
+ = Compatibility =
79
+
80
+ * WooCommerce
81
+ * Gutenberg Editor
82
+ * Hummingbird
83
+
84
  = Supported Networks =
85
 
86
  **Social Networks**
334
  9. Adjust the best times to schedule in the best time scheduler.
335
 
336
  == Changelog ==
337
+ = 5.0.3 =
338
+ Usability Optimization
339
  = 5.0.2 =
340
  Usability Optimization
341
  = 5.0.1 =
388
  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.
389
 
390
  == Upgrade Notice ==
391
+ = 5.0.3 =
392
+ Usability Optimization
393
  = 5.0.2 =
394
  Usability Optimization
395
  = 5.0.1 =