Social Media Follow Buttons Bar - Version 4.38

Version Description

  • Fixed a bug due to which the plugin data that stored in the database to not be deleted during the uninstallation of the plugin.
  • The contents of the file 'uninstall.php is moved to the file 'core.php'. The file 'uninstall.php' is deleted.
  • The function '_tollbar()' is updated.
Download this release

Release Info

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

Code changes from version 4.37 to 4.38

inc/php/core.php CHANGED
@@ -108,3 +108,11 @@ function spacexchimp_p005_activation() {
108
  }
109
  }
110
  register_activation_hook( SPACEXCHIMP_P005_FILE, 'spacexchimp_p005_activation' );
 
 
 
 
 
 
 
 
108
  }
109
  }
110
  register_activation_hook( SPACEXCHIMP_P005_FILE, 'spacexchimp_p005_activation' );
111
+
112
+ /**
113
+ * Delete options on uninstall
114
+ */
115
+ function spacexchimp_p005_uninstall() {
116
+ delete_option( SPACEXCHIMP_P005_SETTINGS . '_settings' );
117
+ }
118
+ register_uninstall_hook( SPACEXCHIMP_P005_FILE, 'spacexchimp_p005_uninstall' );
inc/php/functional.php CHANGED
@@ -16,7 +16,7 @@ function spacexchimp_p005_tollbar() {
16
  $links = !empty( $options['buttons-link'] ) ? $options['buttons-link'] : array();
17
 
18
  // Get the array with all buttons
19
- $items_all = spacexchimp_p005_get_items_all();
20
 
21
  // Generate open window code
22
  $new_tab = !empty( $options['new_tab'] ) ? 'target="blank"' : '';
@@ -30,7 +30,7 @@ function spacexchimp_p005_tollbar() {
30
  // Generate buttons
31
  $toolbar_arr[] = $caption;
32
  $toolbar_arr[] = '<ul class="sxc-follow-buttons">';
33
- foreach ( $items_all as $item ) {
34
  $slug = !empty( $item['slug'] ) ? $item['slug'] : '';
35
  $label = !empty( $item['label'] ) ? $item['label'] : '';
36
  $link = !empty( $links[$slug] ) ? $links[$slug] : '';
@@ -48,7 +48,7 @@ function spacexchimp_p005_tollbar() {
48
  alt="' . $label . '"
49
  />
50
  </a>
51
- </li>';
52
  }
53
  }
54
  $toolbar_arr[] = '</ul>';
16
  $links = !empty( $options['buttons-link'] ) ? $options['buttons-link'] : array();
17
 
18
  // Get the array with all buttons
19
+ $items = spacexchimp_p005_get_items_all();
20
 
21
  // Generate open window code
22
  $new_tab = !empty( $options['new_tab'] ) ? 'target="blank"' : '';
30
  // Generate buttons
31
  $toolbar_arr[] = $caption;
32
  $toolbar_arr[] = '<ul class="sxc-follow-buttons">';
33
+ foreach ( $items as $item ) {
34
  $slug = !empty( $item['slug'] ) ? $item['slug'] : '';
35
  $label = !empty( $item['label'] ) ? $item['label'] : '';
36
  $link = !empty( $links[$slug] ) ? $links[$slug] : '';
48
  alt="' . $label . '"
49
  />
50
  </a>
51
+ </li>';
52
  }
53
  }
54
  $toolbar_arr[] = '</ul>';
inc/php/uninstall.php DELETED
@@ -1,14 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Prevent Direct Access
5
- */
6
- defined( 'ABSPATH' ) or die( "Restricted access!" );
7
-
8
- /**
9
- * Delete options on uninstall
10
- */
11
- function spacexchimp_p005_uninstall() {
12
- delete_option( SPACEXCHIMP_P005_SETTINGS . '_settings' );
13
- }
14
- register_uninstall_hook( __FILE__, 'spacexchimp_p005_uninstall' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: icon, icon set, button, social, media, social button, social media, social
4
  Donate link: https://www.spacexchimp.com/donate.html
5
  Requires at least: 3.9
6
  Tested up to: 4.9
7
- Stable tag: 4.37
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -279,9 +279,14 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
279
 
280
 
281
  == Changelog ==
 
 
 
 
 
282
 
283
  = 4.37 =
284
- * Fixed a bug due to which the links in buttons are disappeared.
285
 
286
  = 4.36 =
287
  * The plugin became much faster due to the decrease in the number of requests to the database.
@@ -748,10 +753,6 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
748
 
749
  == Upgrade Notice ==
750
 
751
- = 4.36 =
752
- * The plugin became much faster due to the decrease in the number of requests to the database.
753
- * A new option is added to the plugin settings page, allowing the user to select the desired buttons.
754
-
755
  = 4.0 =
756
  Please update to new release!
757
 
4
  Donate link: https://www.spacexchimp.com/donate.html
5
  Requires at least: 3.9
6
  Tested up to: 4.9
7
+ Stable tag: 4.38
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
279
 
280
 
281
  == Changelog ==
282
+
283
+ = 4.38 =
284
+ * Fixed a bug due to which the plugin data that stored in the database to not be deleted during the uninstallation of the plugin.
285
+ * The contents of the file 'uninstall.php is moved to the file 'core.php'. The file 'uninstall.php' is deleted.
286
+ * The function '_tollbar()' is updated.
287
 
288
  = 4.37 =
289
+ * Fixed a bug due to which the links in buttons are disappeared.
290
 
291
  = 4.36 =
292
  * The plugin became much faster due to the decrease in the number of requests to the database.
753
 
754
  == Upgrade Notice ==
755
 
 
 
 
 
756
  = 4.0 =
757
  Please update to new release!
758
 
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: Space X-Chimp
7
  * Author URI: https://www.spacexchimp.com
8
- * Version: 4.37
9
  * License: GPL3
10
  * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/
@@ -79,4 +79,3 @@ require_once( SPACEXCHIMP_P005_PATH . 'inc/php/functional.php' );
79
  require_once( SPACEXCHIMP_P005_PATH . 'inc/php/controls.php' );
80
  require_once( SPACEXCHIMP_P005_PATH . 'inc/php/page.php' );
81
  require_once( SPACEXCHIMP_P005_PATH . 'inc/php/messages.php' );
82
- require_once( SPACEXCHIMP_P005_PATH . 'inc/php/uninstall.php' );
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: Space X-Chimp
7
  * Author URI: https://www.spacexchimp.com
8
+ * Version: 4.38
9
  * License: GPL3
10
  * Text Domain: social-media-buttons-toolbar
11
  * Domain Path: /languages/
79
  require_once( SPACEXCHIMP_P005_PATH . 'inc/php/controls.php' );
80
  require_once( SPACEXCHIMP_P005_PATH . 'inc/php/page.php' );
81
  require_once( SPACEXCHIMP_P005_PATH . 'inc/php/messages.php' );