Social Media Follow Buttons Bar - Version 4.3.1

Version Description

  • Fixed the bug due to which the the "Warning: Illegal string offset 'version' in" and the "Warning: Illegal string offset 'old_version' in" warnings are displayed. (Thanks to Sven Brill)
Download this release

Release Info

Developer Arthur Gareginyan
Plugin Icon 128x128 Social Media Follow Buttons Bar
Version 4.3.1
Comparing to
See all releases

Code changes from version 4.3 to 4.3.1

inc/php/version.php CHANGED
@@ -10,15 +10,19 @@ defined('ABSPATH') or die("Restricted access!");
10
  /**
11
  * Function for managing information about the version number of the plugin
12
  *
13
- * @since 4.0
14
  */
15
  function smbtoolbar_plugin_version_number() {
16
 
17
  // Set variables:
18
  // - Read the plugin service information from the database and put it into an array
 
19
  // - Get the current plugin version number from the database
20
  // - Get the new plugin version number from the global constant
21
  $info = get_option( 'smbtoolbar_service_info' );
 
 
 
22
  $current_number = isset( $info['version'] ) && !empty( $info['version'] ) ? $info['version'] : '0';
23
  $new_number = SMEDIABT_VERSION;
24
 
10
  /**
11
  * Function for managing information about the version number of the plugin
12
  *
13
+ * @since 4.3.1
14
  */
15
  function smbtoolbar_plugin_version_number() {
16
 
17
  // Set variables:
18
  // - Read the plugin service information from the database and put it into an array
19
+ // - Make the "$info" array if the plugin service information in the database is not exist
20
  // - Get the current plugin version number from the database
21
  // - Get the new plugin version number from the global constant
22
  $info = get_option( 'smbtoolbar_service_info' );
23
+ if ( !is_array( $info ) ) {
24
+ $info = array();
25
+ }
26
  $current_number = isset( $info['version'] ) && !empty( $info['version'] ) ? $info['version'] : '0';
27
  $new_number = SMEDIABT_VERSION;
28
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: icon, icon set, button, social, media, social button, social media, social
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
  Requires at least: 3.9
6
  Tested up to: 4.7
7
- Stable tag: 4.3
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -199,8 +199,11 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
199
 
200
  == Changelog ==
201
 
 
 
 
202
  = 4.3 =
203
- * Added option for the diaspora button.
204
 
205
  = 4.2 =
206
  * The design of the plugin settings page is completely redone.
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
  Requires at least: 3.9
6
  Tested up to: 4.7
7
+ Stable tag: 4.3.1
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
199
 
200
  == Changelog ==
201
 
202
+ = 4.3.1 =
203
+ * Fixed the bug due to which the the "Warning: Illegal string offset 'version' in" and the "Warning: Illegal string offset 'old_version' in" warnings are displayed. (Thanks to Sven Brill)
204
+
205
  = 4.3 =
206
+ * Added option for the diaspora social network.
207
 
208
  = 4.2 =
209
  * The design of the plugin settings page is completely redone.
social-media-buttons-toolbar.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Easily add the smart bar with social media follow buttons (not share, only link to your profiles) to any place of your WordPress website.
6
  * Author: Arthur Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
- * Version: 4.3
9
  * License: GPL3
10
  * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/
@@ -62,7 +62,7 @@ defined('SMEDIABT_BASE') or define('SMEDIABT_BASE', plugin_basename(__FILE__));
62
  defined('SMEDIABT_URL') or define('SMEDIABT_URL', plugin_dir_url(__FILE__));
63
  defined('SMEDIABT_PATH') or define('SMEDIABT_PATH', plugin_dir_path(__FILE__));
64
  defined('SMEDIABT_TEXT') or define('SMEDIABT_TEXT', 'social-media-buttons-toolbar');
65
- defined('SMEDIABT_VERSION') or define('SMEDIABT_VERSION', '4.3');
66
 
67
  /**
68
  * Load the plugin modules
5
  * Description: Easily add the smart bar with social media follow buttons (not share, only link to your profiles) to any place of your WordPress website.
6
  * Author: Arthur Gareginyan
7
  * Author URI: http://www.arthurgareginyan.com
8
+ * Version: 4.3.1
9
  * License: GPL3
10
  * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/
62
  defined('SMEDIABT_URL') or define('SMEDIABT_URL', plugin_dir_url(__FILE__));
63
  defined('SMEDIABT_PATH') or define('SMEDIABT_PATH', plugin_dir_path(__FILE__));
64
  defined('SMEDIABT_TEXT') or define('SMEDIABT_TEXT', 'social-media-buttons-toolbar');
65
+ defined('SMEDIABT_VERSION') or define('SMEDIABT_VERSION', '4.3.1');
66
 
67
  /**
68
  * Load the plugin modules